aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Modules/using-decl.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-09-15 18:51:56 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-09-15 18:51:56 +0000
commitec4ad5ac9bfec9fcec7d7932a089411fb3245902 (patch)
treec01c30b9fd37b42a32d2ca3ce3b818a2e2bb0f07 /clang/test/Modules/using-decl.cpp
parent7b139762543a92a153a072ec851ca3aeea487b21 (diff)
downloadllvm-ec4ad5ac9bfec9fcec7d7932a089411fb3245902.zip
llvm-ec4ad5ac9bfec9fcec7d7932a089411fb3245902.tar.gz
llvm-ec4ad5ac9bfec9fcec7d7932a089411fb3245902.tar.bz2
[modules] Make sure we make hidden UsingShadowDecls visible to redeclaration
lookup for the UsingShadowDecls themselves. llvm-svn: 247714
Diffstat (limited to 'clang/test/Modules/using-decl.cpp')
-rw-r--r--clang/test/Modules/using-decl.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Modules/using-decl.cpp b/clang/test/Modules/using-decl.cpp
index f016884..1677585 100644
--- a/clang/test/Modules/using-decl.cpp
+++ b/clang/test/Modules/using-decl.cpp
@@ -3,9 +3,15 @@
// RUN: %clang_cc1 -x objective-c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs %s -verify -UEARLY_IMPORT
// RUN: %clang_cc1 -x objective-c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs %s -verify -DEARLY_IMPORT -fno-modules-hide-internal-linkage
// RUN: %clang_cc1 -x objective-c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs %s -verify -UEARLY_IMPORT -fno-modules-hide-internal-linkage
+// RUN: %clang_cc1 -x objective-c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs %s -verify -DEARLY_IMPORT -fmodules-local-submodule-visibility
+// RUN: %clang_cc1 -x objective-c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs %s -verify -UEARLY_IMPORT -fmodules-local-submodule-visibility
#ifdef EARLY_IMPORT
@import using_decl.a;
+namespace UsingDecl {
+ using ::merged;
+}
+int k = UsingDecl::merged;
#endif
namespace Y {