summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/cxx-inline-namespace.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-02-12 02:32:35 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-02-12 02:32:35 +0000
commita00399c94983fb424858113ca5cfab780834f184 (patch)
treebb95b98da8eaed53b3654434a5797633c253e147 /clang/test/Modules/cxx-inline-namespace.cpp
parent587b348504939b57d8fab810ab4483b9d1e5fe48 (diff)
downloadbcm5719-llvm-a00399c94983fb424858113ca5cfab780834f184.tar.gz
bcm5719-llvm-a00399c94983fb424858113ca5cfab780834f184.zip
Remove an assert which triggers when a decl context in a module hits the 'has
lexical storage but not visible storage' case in C++. It's unclear whether we even need the special-case handling for C++, since it seems to be working around our not serializing a lookup table for the TU in C. But in any case, the assertion is incorrect. llvm-svn: 174931
Diffstat (limited to 'clang/test/Modules/cxx-inline-namespace.cpp')
-rw-r--r--clang/test/Modules/cxx-inline-namespace.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Modules/cxx-inline-namespace.cpp b/clang/test/Modules/cxx-inline-namespace.cpp
new file mode 100644
index 00000000000..5b967901b33
--- /dev/null
+++ b/clang/test/Modules/cxx-inline-namespace.cpp
@@ -0,0 +1,6 @@
+// RUN: rm -rf %t
+// RUN: %clang_cc1 -x objective-c++ -fmodules -fmodules-cache-path=%t -I %S/Inputs %s -verify -std=c++11
+
+@import cxx_inline_namespace;
+
+T x; // expected-error {{unknown type name 'T'}}
OpenPOWER on IntegriCloud