mirror of
https://github.com/opnsense/src.git
synced 2026-02-28 04:10:49 -05:00
11 lines
266 B
C++
11 lines
266 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify %s -faccess-control
|
|
|
|
struct A { };
|
|
|
|
void f() {
|
|
struct B : private A {}; // expected-note{{declared private here}}
|
|
|
|
B b;
|
|
|
|
A *a = &b; // expected-error{{cannot cast 'struct B' to its private base class 'struct A'}}
|
|
}
|