diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-10-18 22:48:20 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-10-18 22:48:20 +0000 |
commit | 92304e0013b7df2396d143c7e23c2197bcc0d13d (patch) | |
tree | 4c8db6438f96c8daa7bfb59ad858bd2da5b33af0 /clang/test/Modules/submodules.cpp | |
parent | c064a9abff4413fa5fc2fb96fdb78a436e01d18a (diff) | |
download | bcm5719-llvm-92304e0013b7df2396d143c7e23c2197bcc0d13d.tar.gz bcm5719-llvm-92304e0013b7df2396d143c7e23c2197bcc0d13d.zip |
Fix crash if a submodule @imports another submodule from the same module. The
test also adds FIXMEs for a number of places where imports and includes of
submodules don't work very well.
llvm-svn: 193005
Diffstat (limited to 'clang/test/Modules/submodules.cpp')
-rw-r--r-- | clang/test/Modules/submodules.cpp | 7 |
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}} |