diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-10-23 02:17:46 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-10-23 02:17:46 +0000 |
| commit | fd8634a09de716f6de7b6699d6f4287056551525 (patch) | |
| tree | d600133b3c296a3bd9256b843810c95921b2afd3 /clang/test/Modules/using-decl.cpp | |
| parent | c89e4ca3c181b907562afa3e88be74366cf65bd2 (diff) | |
| download | bcm5719-llvm-fd8634a09de716f6de7b6699d6f4287056551525.tar.gz bcm5719-llvm-fd8634a09de716f6de7b6699d6f4287056551525.zip | |
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.cpp | 8 |
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 00000000000..4432738f060 --- /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; |

