2010-04-10 03:03:51 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2009-07-30 04:41:46 +08:00
|
|
|
|
|
|
|
class M {
|
|
|
|
int iM;
|
|
|
|
};
|
|
|
|
|
|
|
|
class P {
|
2010-01-23 08:46:32 +08:00
|
|
|
int iP; // expected-note {{declared private here}}
|
|
|
|
int PPR(); // expected-note {{declared private here}}
|
2009-07-30 04:41:46 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class N : M,P {
|
|
|
|
N() {}
|
2010-03-10 19:27:22 +08:00
|
|
|
int PR() { return iP + PPR(); } // expected-error 2 {{private member of 'P'}}
|
2009-07-30 04:41:46 +08:00
|
|
|
};
|