blob: ee4ea24c25cfa62ef8051dd6cfc5ae2d80010e79 [file] [log] [blame]
// { dg-do compile }
// { dg-options "-O -fipa-icf -fno-rtti" }
struct A
{
virtual void f ()
{
__builtin_abort ();
}
virtual void g ();
};
struct B : virtual A { };
struct C : B, virtual A { };
void foo()
{
C c;
C *p = &c;
p->f ();
}