aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Modules/cxx-inline-namespace.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-03-23 20:41:56 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-03-23 20:41:56 +0000
commite3a97029da255fb8016f065a0e0fb2a78e087c13 (patch)
tree926730a97b2bcd30e394435c661f87938491d1ed /clang/test/Modules/cxx-inline-namespace.cpp
parent6756a497a1f8a2809db1089832dc0c700a8502d5 (diff)
downloadllvm-e3a97029da255fb8016f065a0e0fb2a78e087c13.zip
llvm-e3a97029da255fb8016f065a0e0fb2a78e087c13.tar.gz
llvm-e3a97029da255fb8016f065a0e0fb2a78e087c13.tar.bz2
If a name is injected into an imported inline namespace without reopening that
namespace, we need to update both the visible names of that namespace and of its enclosing namespace set. llvm-svn: 204570
Diffstat (limited to 'clang/test/Modules/cxx-inline-namespace.cpp')
-rw-r--r--clang/test/Modules/cxx-inline-namespace.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Modules/cxx-inline-namespace.cpp b/clang/test/Modules/cxx-inline-namespace.cpp
index 5b96790..f67d43b 100644
--- a/clang/test/Modules/cxx-inline-namespace.cpp
+++ b/clang/test/Modules/cxx-inline-namespace.cpp
@@ -2,5 +2,8 @@
// RUN: %clang_cc1 -x objective-c++ -fmodules -fmodules-cache-path=%t -I %S/Inputs %s -verify -std=c++11
@import cxx_inline_namespace;
+@import cxx_inline_namespace_b;
T x; // expected-error {{unknown type name 'T'}}
+
+X::Elaborated *p;