2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / virtual10.C
blobba3dea7002fef310b3b10f3d7b0e3e5a59cf22ac
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 spot a static member which overrode a virtual
8 struct A
10   virtual int foo (char);
11   static int foo ();
12   virtual int foo (int);    // { dg-error "" } this function
13   static int foo (float);
14   virtual int foo (double);
17 struct B : A
19   static int foo (int);   // { dg-error "" } cannot override