]> granicus.if.org Git - clang/commitdiff
Test case from PR5476.
authorJohn McCall <rjmccall@apple.com>
Wed, 23 Dec 2009 00:44:38 +0000 (00:44 +0000)
committerJohn McCall <rjmccall@apple.com>
Wed, 23 Dec 2009 00:44:38 +0000 (00:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91957 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/friend.cpp

index dc13570718b480669d1ffed4f3346f2db64ec7a6..2cf4cf9eef039715f149f30d14743a359811f3c0 100644 (file)
@@ -29,3 +29,14 @@ namespace test1 {
     (void) Outer<int>::Inner();
   }
 }
+
+// PR5476
+namespace test2 {
+  namespace foo {
+    void Func(int x);
+  }
+
+  class Bar {
+    friend void ::test2::foo::Func(int x);
+  };
+}