Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / lookup / scoped1.C
blobf1d3f403ea2a0244ced9d193e58942e3c9492c5d
1 // Test that explicitly scoped references to static members work even if
2 // they belong to an inaccessible base.
4 struct A
6   static int i1;
7   int i2; // { dg-error "inaccessible" "" }
8   static void f1 ();
9   void f2 ();
12 struct B: private A { };
13 struct C: public B
15   void g ()
16   {
17     ::A::i1 = 1;
18     ::A::i2 = 1;                // { dg-error "(access)|(context)" "" }
19     ::A::f1 ();
20     ::A::f2 ();                 // { dg-error "" }
21   }