[cfe-commits] r68086 - /cfe/trunk/test/SemaCXX/namespace-alias.cpp
Anders Carlsson
andersca at mac.com
Mon Mar 30 22:47:20 PDT 2009
Author: andersca
Date: Tue Mar 31 00:47:19 2009
New Revision: 68086
URL: http://llvm.org/viewvc/llvm-project?rev=68086&view=rev
Log:
Check in test for namespace aliases+using directives.
Modified:
cfe/trunk/test/SemaCXX/namespace-alias.cpp
Modified: cfe/trunk/test/SemaCXX/namespace-alias.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/namespace-alias.cpp?rev=68086&r1=68085&r2=68086&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/namespace-alias.cpp (original)
+++ cfe/trunk/test/SemaCXX/namespace-alias.cpp Tue Mar 31 00:47:19 2009
@@ -48,3 +48,17 @@
int f() {
return I::A2::i;
}
+
+namespace J {
+ namespace A {
+ namespace B { void func (); }
+ }
+
+ namespace C = A;
+
+ using namespace C::B;
+
+ void g() {
+ func();
+ }
+}
More information about the cfe-commits
mailing list