From 63a9514a2330b144575a136e38875193760126f7 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174931 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Modules/cxx-inline-namespace.cpp | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/Modules/cxx-inline-namespace.cpp (limited to 'test/Modules/cxx-inline-namespace.cpp') diff --git a/test/Modules/cxx-inline-namespace.cpp b/test/Modules/cxx-inline-namespace.cpp new file mode 100644 index 0000000000..5b967901b3 --- /dev/null +++ b/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-18-g5258