[cfe-commits] r91957 - /cfe/trunk/test/SemaCXX/friend.cpp
John McCall
rjmccall at apple.com
Tue Dec 22 16:44:39 PST 2009
Author: rjmccall
Date: Tue Dec 22 18:44:38 2009
New Revision: 91957
URL: http://llvm.org/viewvc/llvm-project?rev=91957&view=rev
Log:
Test case from PR5476.
Modified:
cfe/trunk/test/SemaCXX/friend.cpp
Modified: cfe/trunk/test/SemaCXX/friend.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/friend.cpp?rev=91957&r1=91956&r2=91957&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/friend.cpp (original)
+++ cfe/trunk/test/SemaCXX/friend.cpp Tue Dec 22 18:44:38 2009
@@ -29,3 +29,14 @@
(void) Outer<int>::Inner();
}
}
+
+// PR5476
+namespace test2 {
+ namespace foo {
+ void Func(int x);
+ }
+
+ class Bar {
+ friend void ::test2::foo::Func(int x);
+ };
+}
More information about the cfe-commits
mailing list