aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-12-23 01:09:14 +0000
committerJohn McCall <rjmccall@apple.com>2009-12-23 01:09:14 +0000
commitbc12044215a6d0d77b5c6f09df34e8506a8d80e1 (patch)
tree4b517a164915afa8a821aed5fdd0336e2951c8be
parent73ba9a6337c7879021976949a2dad9476a4f0abb (diff)
Test case for PR5134.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91965 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/SemaCXX/friend.cpp7
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);
+ };
+}