OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / virtual10.C
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 spot a static member which overrode a virtual
7
8 struct A
9 {
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);
15 };
16
17 struct B : A
18 {
19   static int foo (int);   // { dg-error "" } cannot override
20 };