aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/access-control-check.cpp
blob: d2acfe416732bddb6db7ba469d0caf40d1b557ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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(); }
};