2 // Origin: Dirk Mueller <dmuell@gmx.net>
5 // Access to base class private static member.
11 static int fooprotected;
16 class Derived : public Base {
21 int Base::fooprivate=42; // { dg-error "private" }
22 int Base::fooprotected=42;
23 int Base::foopublic=42;
25 void Derived::test() {
26 if ( fooprivate ); // { dg-error "context" }