17 lines
260 B
C++
17 lines
260 B
C++
// RUN: clang-cc -fsyntax-only -faccess-control -verify %s
|
|
|
|
class M {
|
|
int iM;
|
|
};
|
|
|
|
class P {
|
|
int iP;
|
|
int PPR();
|
|
};
|
|
|
|
class N : M,P {
|
|
N() {}
|
|
// FIXME. No access violation is reported in method call or member access.
|
|
int PR() { return iP + PPR(); }
|
|
};
|