aboutsummaryrefslogtreecommitdiff
path: root/test/CXX/dcl.dcl/basic.namespace/namespace.def/p2.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-10-22 15:24:46 +0000
committerDouglas Gregor <dgregor@apple.com>2010-10-22 15:24:46 +0000
commitfe7574b3adc7b38e70dc4ecd335e8c9b38ab549f (patch)
tree749761a5a4865a41fc89ee1fcf68b3cf0edfbd86 /test/CXX/dcl.dcl/basic.namespace/namespace.def/p2.cpp
parent9bd1d8d174a9d15ae343246c8322299248b9e92a (diff)
When performing name lookup for a namespace definition, only look into
the current context's redeclaration context, ignoring using directives. Fixes PR8430. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117097 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CXX/dcl.dcl/basic.namespace/namespace.def/p2.cpp')
-rw-r--r--test/CXX/dcl.dcl/basic.namespace/namespace.def/p2.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/CXX/dcl.dcl/basic.namespace/namespace.def/p2.cpp b/test/CXX/dcl.dcl/basic.namespace/namespace.def/p2.cpp
new file mode 100644
index 0000000000..411c16cd8d
--- /dev/null
+++ b/test/CXX/dcl.dcl/basic.namespace/namespace.def/p2.cpp
@@ -0,0 +1,24 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+// PR8430
+namespace N {
+ class A { };
+}
+
+namespace M { }
+
+using namespace M;
+
+namespace N {
+ namespace M {
+ }
+}
+
+namespace M {
+ namespace N {
+ }
+}
+
+namespace N {
+ A *getA();
+}