[modules] Add forgotten test case to r265597.
authorVassil Vassilev <v.g.vassilev@gmail.com>
Wed, 6 Apr 2016 20:58:12 +0000 (20:58 +0000)
committerVassil Vassilev <v.g.vassilev@gmail.com>
Wed, 6 Apr 2016 20:58:12 +0000 (20:58 +0000)
llvm-svn: 265599

clang/test/Modules/Inputs/PR27186/Rtypes.h [new file with mode: 0644]
clang/test/Modules/Inputs/PR27186/module.modulemap [new file with mode: 0644]
clang/test/Modules/Inputs/PR27186/stddef.h [new file with mode: 0644]
clang/test/Modules/Inputs/PR27186/time.h [new file with mode: 0644]
clang/test/Modules/pr27186.cpp [new file with mode: 0644]

diff --git a/clang/test/Modules/Inputs/PR27186/Rtypes.h b/clang/test/Modules/Inputs/PR27186/Rtypes.h
new file mode 100644 (file)
index 0000000..ecbe10d
--- /dev/null
@@ -0,0 +1,2 @@
+#include <stddef.h>
+typedef struct timespec timespec_t;
diff --git a/clang/test/Modules/Inputs/PR27186/module.modulemap b/clang/test/Modules/Inputs/PR27186/module.modulemap
new file mode 100644 (file)
index 0000000..58ce19d
--- /dev/null
@@ -0,0 +1,5 @@
+module "Rtypes.h" { header "Rtypes.h" }
+module a [extern_c] {
+  header "stddef.h"
+  header "time.h"
+}
diff --git a/clang/test/Modules/Inputs/PR27186/stddef.h b/clang/test/Modules/Inputs/PR27186/stddef.h
new file mode 100644 (file)
index 0000000..8b13789
--- /dev/null
@@ -0,0 +1 @@
+
diff --git a/clang/test/Modules/Inputs/PR27186/time.h b/clang/test/Modules/Inputs/PR27186/time.h
new file mode 100644 (file)
index 0000000..9ac2ace
--- /dev/null
@@ -0,0 +1 @@
+struct timespec;
diff --git a/clang/test/Modules/pr27186.cpp b/clang/test/Modules/pr27186.cpp
new file mode 100644 (file)
index 0000000..02a8fe5
--- /dev/null
@@ -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