1 // { dg-do assemble  }
2 
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 14 Nov 2000 <nathan@codesourcery.com>
5 
6 // We failed to check virtual functions hidden by using declarations.
7 
8 struct A
9 {
10   virtual int foo ();
11 };
12 
13 struct B
14 {
15   virtual void foo ();  // { dg-error "" } of this function
16 };
17 
18 struct C : A , B
19 {
20 };
21 
22 struct D : C
23 {
24   void foo (short);
25   using A::foo;
26 };
27 
28 struct E : D
29 {
30   virtual int foo ();   // { dg-error "" } invalid override
31 };
32