summaryrefslogtreecommitdiff
path: root/test/CXX/class/class.friend/p2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CXX/class/class.friend/p2.cpp')
-rw-r--r--test/CXX/class/class.friend/p2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CXX/class/class.friend/p2.cpp b/test/CXX/class/class.friend/p2.cpp
index 9fe2b17e5049d..eb5036f812871 100644
--- a/test/CXX/class/class.friend/p2.cpp
+++ b/test/CXX/class/class.friend/p2.cpp
@@ -4,7 +4,7 @@ struct B0;
class A {
friend class B {}; // expected-error {{cannot define a type in a friend declaration}}
- friend int; // expected-error {{friends can only be classes or functions}}
- friend B0; // expected-error {{must specify 'struct' to befriend}}
+ friend int; // expected-warning {{non-class type 'int' cannot be a friend}}
+ friend B0; // expected-warning {{must specify 'struct' to befriend}}
friend class C; // okay
};