* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / virtual11.C
blob8b46dc7542126b1f692dd5ad6e2f2a3faf810e2f
1 // { dg-do assemble  }
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 14 Nov 2000 <nathan@codesourcery.com>
6 // We failed to check virtual functions hidden by using declarations.
8 struct A
10   virtual int foo ();
13 struct B
15   virtual void foo ();  // { dg-error "" } of this function
18 struct C : A , B
22 struct D : C
24   void foo (short);
25   using A::foo;
28 struct E : D
30   virtual int foo ();   // { dg-error "" } invalid override