From a00399c94983fb424858113ca5cfab780834f184 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 12 Feb 2013 02:32:35 +0000 Subject: 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 --- clang/test/Modules/cxx-inline-namespace.cpp | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 clang/test/Modules/cxx-inline-namespace.cpp (limited to 'clang/test/Modules/cxx-inline-namespace.cpp') 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'}} -- cgit v1.2.3