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