summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules
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
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')
-rw-r--r--clang/test/Modules/Inputs/cxx-inline-namespace.h11
-rw-r--r--clang/test/Modules/Inputs/module.map4
-rw-r--r--clang/test/Modules/cxx-inline-namespace.cpp6
3 files changed, 21 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/cxx-inline-namespace.h b/clang/test/Modules/Inputs/cxx-inline-namespace.h
new file mode 100644
index 00000000000..2525ad3569c
--- /dev/null
+++ b/clang/test/Modules/Inputs/cxx-inline-namespace.h
@@ -0,0 +1,11 @@
+namespace std {
+ inline namespace __1 {
+ namespace __is_function_imp {}
+ }
+}
+
+namespace std {
+ inline namespace __1 {
+ typedef int size_t;
+ }
+}
diff --git a/clang/test/Modules/Inputs/module.map b/clang/test/Modules/Inputs/module.map
index eeb8d158e5f..f219036e21d 100644
--- a/clang/test/Modules/Inputs/module.map
+++ b/clang/test/Modules/Inputs/module.map
@@ -175,3 +175,7 @@ module ignored_macros {
module cxx_many_overloads {
header "cxx-many-overloads.h"
}
+
+module cxx_inline_namespace {
+ header "cxx-inline-namespace.h"
+}
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