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