blob: bdd1200049fa5c5030d76676c33ad4fd19a56743 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -flto -fno-early-inlining -fkeep-inline-functions" } */
/* { dg-require-effective-target lto } */
struct A
{
virtual void foo () = 0;
};
struct B : A {};
struct C : A {};
struct D: C, B
{
void foo () {}
};
static inline void
bar (B *b)
{
b->foo ();
}
int
main ()
{
D d;
for (;;)
bar (&d);
}