]> granicus.if.org Git - clang/commitdiff
Check in test for namespace aliases+using directives.
authorAnders Carlsson <andersca@mac.com>
Tue, 31 Mar 2009 05:47:19 +0000 (05:47 +0000)
committerAnders Carlsson <andersca@mac.com>
Tue, 31 Mar 2009 05:47:19 +0000 (05:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68086 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/namespace-alias.cpp

index c715c9f97cfb6d3d6de422425549817ae3dda52e..d5e423848cb52d266f81631f3fdc62bd1dec0e98 100644 (file)
@@ -48,3 +48,17 @@ namespace I {
 int f() {
   return I::A2::i;
 }
+
+namespace J {
+  namespace A { 
+    namespace B { void func (); }
+  }
+
+  namespace C = A;
+
+  using namespace C::B;
+
+  void g() {
+    func();
+  }
+}