aboutsummaryrefslogtreecommitdiff
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.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Parser/cxx-friend.cpp b/test/Parser/cxx-friend.cpp
index 397894727b..14b31af761 100644
--- a/test/Parser/cxx-friend.cpp
+++ b/test/Parser/cxx-friend.cpp
@@ -21,8 +21,8 @@ class B {
// 'A' here should refer to the declaration above.
friend class A;
- friend C; // expected-error {{must specify 'class' in a friend class declaration}}
- friend U; // expected-error {{must specify 'union' in a friend union declaration}}
+ friend C; // expected-error {{must specify 'class' to befriend}}
+ friend U; // expected-error {{must specify 'union' to befriend}}
friend int; // expected-error {{friends can only be classes or functions}}
friend void myfunc();