repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
access-control-check.cpp
blob
4540e99d8a3376a0f11bdb34fafb93a7651d806f
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3
class
M
{
4
int
iM
;
5
};
6
7
class
P
{
8
int
iP
;
// expected-note {{declared private here}}
9
int
PPR
();
// expected-note {{declared private here}}
10
};
11
12
class
N
:
M
,
P
{
13
N
() {}
14
int
PR
() {
return
iP
+
PPR
(); }
// expected-error 2 {{private member of 'P'}}
15
};