aboutsummaryrefslogtreecommitdiff
path: root/test/CXX/class
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-05-10 21:23:31 +0000
committerDouglas Gregor <dgregor@apple.com>2011-05-10 21:23:31 +0000
commit44054452c416a622b8f19a6d157a0affc05b9aa8 (patch)
tree90ad8408e93601d55d273bf06ac4702d5755504d /test/CXX/class
parentc436708c65be210d2ab761a02df2b6c06bd0a85b (diff)
Tweak the diagnostics for the C++0x extensions to friend types to note
that they are C++0x extensions, and put them in the appropriate group. We already support most of the semantics. Addresses <rdar://problem/9407525>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131153 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CXX/class')
-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 eb5036f812..87b69c095f 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-warning {{non-class type 'int' cannot be a friend}}
- friend B0; // expected-warning {{must specify 'struct' to befriend}}
+ friend int; // expected-warning {{non-class friend type 'int' is a C++0x extension}}
+ friend B0; // expected-warning {{specify 'struct' to befriend 'B0'}}
friend class C; // okay
};