2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / virtual4.C
blob6933755ab2e1b5d83c89045d048ccf5e23b94e63
1 // { dg-do assemble  }
3 class A {
4 public:
5   virtual int foo() = 0; // { dg-error "" } original definition
6 };
8 class B {
9 public:
10     virtual double foo() = 0;
13 class C
14   : public A, public B
16 public:
17   virtual double foo() { return 2; } // { dg-error "" } conflicting return type
20 class D
21   : public B, public A
23 public:
24   virtual double foo() { return 2; } // { dg-error "" } conflicting return type