forked from OSchip/llvm-project
parent
16927f6274
commit
9caafbc5ca
|
@ -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'}}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue