Add an extra test to this test-case.

llvm-svn: 98322
This commit is contained in:
John McCall 2010-03-12 01:20:21 +00:00
parent 16927f6274
commit 9caafbc5ca
1 changed files with 7 additions and 1 deletions

View File

@ -73,7 +73,7 @@ namespace test0 {
void declared_test();
class Class {
static void member(); // expected-note {{declared private here}}
static void member(); // expected-note 2 {{declared private here}}
friend class ClassFriend;
friend class UndeclaredClassFriend;
@ -108,4 +108,10 @@ namespace test0 {
Class::member();
}
};
class ClassNonFriend {
void test() {
Class::member(); // expected-error {{'member' is a private member of 'test0::Class'}}
}
};
}