diff --git a/clang/test/SemaCXX/friend.cpp b/clang/test/SemaCXX/friend.cpp index 2cf4cf9eef03..ffad0e2b44ef 100644 --- a/clang/test/SemaCXX/friend.cpp +++ b/clang/test/SemaCXX/friend.cpp @@ -40,3 +40,10 @@ namespace test2 { friend void ::test2::foo::Func(int x); }; } + +// PR5134 +namespace test3 { + class Foo { + friend const int getInt(int inInt = 0); + }; +}