2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / visibility8.C
blob00f5347ff86255f2b22d984169c108c7baa0be92
1 // { dg-do assemble  }
2 // GROUPS passed visibility
3 // Make sure private inheritance affects the visibility of
4 // static members used in an inherited context.
5 class foo
7 public:
8   static int y; // { dg-error "" } private
9 };
10 class foo1 : private foo
11 { };
12 class foo2 : public foo1
13 { public:
14   void bar () { y; }// { dg-error "" } .*