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
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
CXX
/
class
/
class.local
/
p2.cpp
blob
db4c90f564fe8713ef1437dbe990d184783ae4aa
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3
struct
A
{ };
4
5
void
f
() {
6
struct
B
:
private
A
{};
// expected-note{{declared private here}}
7
8
B b
;
9
10
A
*
a
= &
b
;
// expected-error{{cannot cast 'B' to its private base class 'A'}}
11
}