summaryrefslogtreecommitdiffstats
path: root/test/CXX/class.access/class.friend/p6.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CXX/class.access/class.friend/p6.cpp')
-rw-r--r--test/CXX/class.access/class.friend/p6.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CXX/class.access/class.friend/p6.cpp b/test/CXX/class.access/class.friend/p6.cpp
index 7f7d909..2fe20fe 100644
--- a/test/CXX/class.access/class.friend/p6.cpp
+++ b/test/CXX/class.access/class.friend/p6.cpp
@@ -11,6 +11,10 @@ struct Y {
friend void X::f2() { } // expected-error{{friend function definition cannot be qualified with 'X::'}}
};
+template <typename T> struct Z {
+ friend void T::f() {} // expected-error{{friend function definition cannot be qualified with 'T::'}}
+};
+
void local() {
void f();
OpenPOWER on IntegriCloud