summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules
diff options
context:
space:
mode:
authorVassil Vassilev <v.g.vassilev@gmail.com>2016-07-22 20:49:31 +0000
committerVassil Vassilev <v.g.vassilev@gmail.com>2016-07-22 20:49:31 +0000
commit462a5328ddd6ee7612911ea6f91da40ed3d994f4 (patch)
tree0116d070039df6c3356e727e628ba71732a9ef9c /clang/test/Modules
parent127d0502a0a86bf737934d8f018175a0aefc611d (diff)
downloadbcm5719-llvm-462a5328ddd6ee7612911ea6f91da40ed3d994f4.tar.gz
bcm5719-llvm-462a5328ddd6ee7612911ea6f91da40ed3d994f4.zip
Add regression test for PR27699.
llvm-svn: 276469
Diffstat (limited to 'clang/test/Modules')
-rw-r--r--clang/test/Modules/Inputs/PR27699/Subdir/a.h1
-rw-r--r--clang/test/Modules/Inputs/PR27699/Subdir/b.h1
-rw-r--r--clang/test/Modules/Inputs/PR27699/module.modulemap1
-rw-r--r--clang/test/Modules/Inputs/PR27699/streambuf7
-rw-r--r--clang/test/Modules/pr27699.cpp9
5 files changed, 19 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/PR27699/Subdir/a.h b/clang/test/Modules/Inputs/PR27699/Subdir/a.h
new file mode 100644
index 00000000000..6c36a1a100b
--- /dev/null
+++ b/clang/test/Modules/Inputs/PR27699/Subdir/a.h
@@ -0,0 +1 @@
+#include "streambuf"
diff --git a/clang/test/Modules/Inputs/PR27699/Subdir/b.h b/clang/test/Modules/Inputs/PR27699/Subdir/b.h
new file mode 100644
index 00000000000..6c36a1a100b
--- /dev/null
+++ b/clang/test/Modules/Inputs/PR27699/Subdir/b.h
@@ -0,0 +1 @@
+#include "streambuf"
diff --git a/clang/test/Modules/Inputs/PR27699/module.modulemap b/clang/test/Modules/Inputs/PR27699/module.modulemap
new file mode 100644
index 00000000000..1f58ca06753
--- /dev/null
+++ b/clang/test/Modules/Inputs/PR27699/module.modulemap
@@ -0,0 +1 @@
+module a { umbrella "Subdir" module * {export *} }
diff --git a/clang/test/Modules/Inputs/PR27699/streambuf b/clang/test/Modules/Inputs/PR27699/streambuf
new file mode 100644
index 00000000000..30ea73d230d
--- /dev/null
+++ b/clang/test/Modules/Inputs/PR27699/streambuf
@@ -0,0 +1,7 @@
+ #ifndef STREAMBUF
+ #define STREAMBUF
+ template <typename> struct basic_streambuf {
+ basic_streambuf(const basic_streambuf &);
+ };
+template <typename T> basic_streambuf<T>::basic_streambuf(const basic_streambuf &) = default;
+#endif
diff --git a/clang/test/Modules/pr27699.cpp b/clang/test/Modules/pr27699.cpp
new file mode 100644
index 00000000000..0a17fcba56f
--- /dev/null
+++ b/clang/test/Modules/pr27699.cpp
@@ -0,0 +1,9 @@
+// RUN: rm -rf %t
+// RUN: %clang_cc1 -std=c++11 -I%S/Inputs/PR27699 -verify %s
+// RUN: %clang_cc1 -std=c++11 -fmodules -fmodule-map-file=%S/Inputs/PR27699/module.modulemap -fmodules-cache-path=%t -fmodules-local-submodule-visibility -I%S/Inputs/PR27699 -verify %s
+
+#include "Subdir/a.h"
+#include "Subdir/b.h"
+
+// expected-no-diagnostics
+
OpenPOWER on IntegriCloud