Fix typo in test case
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / access3.C
blob2ba2c0c51d67c63a6b0c9ab3a698a4b47ee2f72b
1 // Build don't link:
2 // The standard sez that a use of a name gets the most access it can through
3 // the various paths that can reach it.  Here, the access decl in B gives
4 // us access.
6 struct A
8   void f ();                    
9 };
11 struct B: private virtual A
13   A::f;
16 struct C: private virtual A, public B
20 int
21 main ()
23   C c;
25   c.f ();