diff options
| -rw-r--r-- | clang/test/SemaCXX/friend.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/friend.cpp b/clang/test/SemaCXX/friend.cpp index dc13570718b..2cf4cf9eef0 100644 --- a/clang/test/SemaCXX/friend.cpp +++ b/clang/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); + }; +} |

