1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 
3 struct A { };
4 
f()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 }
12