r265599 - [modules] Add forgotten test case to r265597.

Vassil Vassilev via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 6 13:58:12 PDT 2016


Author: vvassilev
Date: Wed Apr  6 15:58:12 2016
New Revision: 265599

URL: http://llvm.org/viewvc/llvm-project?rev=265599&view=rev
Log:
[modules] Add forgotten test case to r265597.

Added:
    cfe/trunk/test/Modules/Inputs/PR27186/
    cfe/trunk/test/Modules/Inputs/PR27186/Rtypes.h
    cfe/trunk/test/Modules/Inputs/PR27186/module.modulemap
    cfe/trunk/test/Modules/Inputs/PR27186/stddef.h
    cfe/trunk/test/Modules/Inputs/PR27186/time.h
    cfe/trunk/test/Modules/pr27186.cpp

Added: cfe/trunk/test/Modules/Inputs/PR27186/Rtypes.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/Inputs/PR27186/Rtypes.h?rev=265599&view=auto
==============================================================================
--- cfe/trunk/test/Modules/Inputs/PR27186/Rtypes.h (added)
+++ cfe/trunk/test/Modules/Inputs/PR27186/Rtypes.h Wed Apr  6 15:58:12 2016
@@ -0,0 +1,2 @@
+#include <stddef.h>
+typedef struct timespec timespec_t;

Added: cfe/trunk/test/Modules/Inputs/PR27186/module.modulemap
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/Inputs/PR27186/module.modulemap?rev=265599&view=auto
==============================================================================
--- cfe/trunk/test/Modules/Inputs/PR27186/module.modulemap (added)
+++ cfe/trunk/test/Modules/Inputs/PR27186/module.modulemap Wed Apr  6 15:58:12 2016
@@ -0,0 +1,5 @@
+module "Rtypes.h" { header "Rtypes.h" }
+module a [extern_c] {
+  header "stddef.h"
+  header "time.h"
+}

Added: cfe/trunk/test/Modules/Inputs/PR27186/stddef.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/Inputs/PR27186/stddef.h?rev=265599&view=auto
==============================================================================
--- cfe/trunk/test/Modules/Inputs/PR27186/stddef.h (added)
+++ cfe/trunk/test/Modules/Inputs/PR27186/stddef.h Wed Apr  6 15:58:12 2016
@@ -0,0 +1 @@
+

Added: cfe/trunk/test/Modules/Inputs/PR27186/time.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/Inputs/PR27186/time.h?rev=265599&view=auto
==============================================================================
--- cfe/trunk/test/Modules/Inputs/PR27186/time.h (added)
+++ cfe/trunk/test/Modules/Inputs/PR27186/time.h Wed Apr  6 15:58:12 2016
@@ -0,0 +1 @@
+struct timespec;

Added: cfe/trunk/test/Modules/pr27186.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/pr27186.cpp?rev=265599&view=auto
==============================================================================
--- cfe/trunk/test/Modules/pr27186.cpp (added)
+++ cfe/trunk/test/Modules/pr27186.cpp Wed Apr  6 15:58:12 2016
@@ -0,0 +1,7 @@
+// RUN: rm -rf %t
+// RUN: %clang_cc1 -std=c++11 -I%S/Inputs/PR27186  -I%S/Inputs/PR27186/subdir/ -verify %s
+// RUN: %clang_cc1  -nostdsysteminc -std=c++11 -fmodules  -fmodule-map-file=%S/Inputs/PR27186/module.modulemap -fmodules-cache-path=%t -I%S/Inputs/PR27186/ -verify %s
+
+#include "Rtypes.h"
+
+// expected-no-diagnostics




More information about the cfe-commits mailing list