From: John McCall Date: Wed, 23 Dec 2009 00:44:38 +0000 (+0000) Subject: Test case from PR5476. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df370002215a56cbbee139630f1cd8c8299b861f;p=clang Test case from PR5476. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91957 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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::Inner(); } } + +// PR5476 +namespace test2 { + namespace foo { + void Func(int x); + } + + class Bar { + friend void ::test2::foo::Func(int x); + }; +}