aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Modules/using-decl.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-10-23 02:17:46 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-10-23 02:17:46 +0000
commitfd8634a09de716f6de7b6699d6f4287056551525 (patch)
treed600133b3c296a3bd9256b843810c95921b2afd3 /clang/test/Modules/using-decl.cpp
parentc89e4ca3c181b907562afa3e88be74366cf65bd2 (diff)
downloadllvm-fd8634a09de716f6de7b6699d6f4287056551525.zip
llvm-fd8634a09de716f6de7b6699d6f4287056551525.tar.gz
llvm-fd8634a09de716f6de7b6699d6f4287056551525.tar.bz2
Make UsingShadowDecls redeclarable. This fixes some visibility problems with
modules. With this fixed, I no longer see any test regressions in the libc++ test suite when enabling a single-module module.map for libc++ (other than issues with my system headers). llvm-svn: 193219
Diffstat (limited to 'clang/test/Modules/using-decl.cpp')
-rw-r--r--clang/test/Modules/using-decl.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Modules/using-decl.cpp b/clang/test/Modules/using-decl.cpp
new file mode 100644
index 0000000..4432738
--- /dev/null
+++ b/clang/test/Modules/using-decl.cpp
@@ -0,0 +1,8 @@
+// RUN: rm -rf %t
+// RUN: %clang_cc1 -x objective-c++ -fmodules -fmodules-cache-path=%t -I %S/Inputs %s -verify
+
+@import using_decl.a;
+
+// expected-no-diagnostics
+UsingDecl::using_decl_type x = UsingDecl::using_decl_var;
+UsingDecl::inner y = x;