blob: 6933755ab2e1b5d83c89045d048ccf5e23b94e63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// { dg-do assemble }
class A {
public:
virtual int foo() = 0; // { dg-error "" } original definition
};
class B {
public:
virtual double foo() = 0;
};
class C
: public A, public B
{
public:
virtual double foo() { return 2; } // { dg-error "" } conflicting return type
};
class D
: public B, public A
{
public:
virtual double foo() { return 2; } // { dg-error "" } conflicting return type
};
|