freebsd-nq/test/SemaCXX/access-control-check.cpp
2009-10-14 18:03:49 +00:00

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