summaryrefslogtreecommitdiffstats
path: root/test/Parser/cxx-friend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Parser/cxx-friend.cpp')
-rw-r--r--test/Parser/cxx-friend.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Parser/cxx-friend.cpp b/test/Parser/cxx-friend.cpp
index 59350b5..a13e7ba 100644
--- a/test/Parser/cxx-friend.cpp
+++ b/test/Parser/cxx-friend.cpp
@@ -21,9 +21,9 @@ class B {
// 'A' here should refer to the declaration above.
friend class A;
- friend C; // expected-warning {{must specify 'class' to befriend}}
- friend U; // expected-warning {{must specify 'union' to befriend}}
- friend int; // expected-warning {{non-class type 'int' cannot be a friend}}
+ friend C; // expected-warning {{specify 'class' to befriend}}
+ friend U; // expected-warning {{specify 'union' to befriend}}
+ friend int; // expected-warning {{non-class friend type 'int'}}
friend void myfunc();
OpenPOWER on IntegriCloud