summaryrefslogtreecommitdiffstats
path: root/test/Modules/misplaced-1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Modules/misplaced-1.cpp')
-rw-r--r--test/Modules/misplaced-1.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Modules/misplaced-1.cpp b/test/Modules/misplaced-1.cpp
new file mode 100644
index 0000000..d67ad19
--- /dev/null
+++ b/test/Modules/misplaced-1.cpp
@@ -0,0 +1,6 @@
+// RUN: rm -rf %t
+// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs %s -verify
+
+namespace N1 { // expected-note{{namespace 'N1' begins here}}
+#include "dummy.h" // expected-error{{import of module 'dummy' appears within namespace 'N1'}}
+}
OpenPOWER on IntegriCloud