summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/friend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/friend.cpp')
-rw-r--r--clang/test/SemaCXX/friend.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/friend.cpp b/clang/test/SemaCXX/friend.cpp
index b401a06a7ec..3da27e0f33f 100644
--- a/clang/test/SemaCXX/friend.cpp
+++ b/clang/test/SemaCXX/friend.cpp
@@ -154,3 +154,12 @@ namespace test8 {
friend void B::f(); // expected-error {{cannot befriend target of using declaration}}
};
}
+
+// PR16423
+namespace test9 {
+ class C {
+ };
+ struct A {
+ friend void C::f(int, int, int) {} // expected-error {{no function named 'f' with type 'void (int, int, int)' was found in the specified scope}}
+ };
+}
OpenPOWER on IntegriCloud