aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-12-23 00:44:38 +0000
committerJohn McCall <rjmccall@apple.com>2009-12-23 00:44:38 +0000
commitdf370002215a56cbbee139630f1cd8c8299b861f (patch)
treeb2e8b2e293d2ac42047932f8d18ddbb71f09ecb0
parent44e067bd8f923ba8e7c24b2189e06717d70015c8 (diff)
Test case from PR5476.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91957 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/SemaCXX/friend.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/SemaCXX/friend.cpp b/test/SemaCXX/friend.cpp
index dc13570718..2cf4cf9eef 100644
--- a/test/SemaCXX/friend.cpp
+++ b/test/SemaCXX/friend.cpp
@@ -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);
+ };
+}