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