8sa1-gcc/gcc/testsuite/g++.old-deja/g++.brendan/misc11.C
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

21 lines
274 B
C

// Build don't link:
// GROUPS passed miscellaneous
// This should not complain about A::f being abstract.
struct A
{
virtual int f() = 0;
};
struct B : virtual A
{
virtual int f() { return 1; }
virtual int g() = 0;
};
struct C: B
{
int g() { return 2; }
};
C c;