2 // GROUPS passed visibility
3 // Make sure private inheritance affects the visibility of
4 // static members used in an inherited context.
8 static int y; // { dg-message "" } private
10 class foo1 : private foo
12 class foo2 : public foo1
14 void bar () { y; }// { dg-error "" } .*