hanchenye-llvm-project/clang/test/SemaCXX/access-control-check.cpp

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(); }
};