diff options
Diffstat (limited to 'test/CXX/class/class.friend/p1.cpp')
-rw-r--r-- | test/CXX/class/class.friend/p1.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CXX/class/class.friend/p1.cpp b/test/CXX/class/class.friend/p1.cpp index 07b3a101c2a9..96701b3b05a5 100644 --- a/test/CXX/class/class.friend/p1.cpp +++ b/test/CXX/class/class.friend/p1.cpp @@ -66,6 +66,10 @@ class A { class facet; friend class facet; // should not assert class facet {}; + + friend int Unknown::thing(); // expected-error {{use of undeclared identifier}} + friend int friendfunc(), Unknown::thing(); // expected-error {{use of undeclared identifier}} + friend int friendfunc(), Unknown::thing() : 4; // expected-error {{use of undeclared identifier}} }; A::UndeclaredSoFar y; // expected-error {{no type named 'UndeclaredSoFar' in 'A'}} |