summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/submodules.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Modules/submodules.cpp')
-rw-r--r--clang/test/Modules/submodules.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Modules/submodules.cpp b/clang/test/Modules/submodules.cpp
index c653dddbbb5..9c62389eadc 100644
--- a/clang/test/Modules/submodules.cpp
+++ b/clang/test/Modules/submodules.cpp
@@ -27,3 +27,10 @@ hash_map<int, float> ints_to_floats; // expected-error{{declaration of 'hash_map
hash_map<int, float> ints_to_floats2;
+@import import_self.b;
+extern MyTypeA import_self_test_a; // expected-error {{must be imported from module 'import_self.a'}}
+// expected-note@import-self-a.h:1 {{here}}
+extern MyTypeC import_self_test_c;
+// FIXME: This should be valid; import_self.b re-exports import_self.d.
+extern MyTypeD import_self_test_d; // expected-error {{must be imported from module 'import_self.d'}}
+// expected-note@import-self-d.h:1 {{here}}
OpenPOWER on IntegriCloud