* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / scoped1.C
blob663f718b734d757c354d1f7e689461bb2107daa4
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-message "declared" }
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   }