2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / inherit / access1.C
blob7f2ec689290899af6262c8a3e86837452b0fbd1e
1 // Test that we can access a member from an inaccessible base if it has
2 // been promoted with a using-declaration.
4 // { dg-do compile }
6 struct A
8   int i;
9 };
11 struct B: private A
13   using A::i;
16 struct C: public B
18   void f () { B::i = 0; }