blob: 966a3c3bc7421775613f7e37c02562e0326aef42 [file] [log] [blame]
// PR lto/60567
// { dg-lto-do link }
// { dg-lto-options { { -flto -fno-use-linker-plugin } } }
// { dg-extra-ld-options "-r -nostdlib" }
#pragma implementation
struct S {};
#pragma interface
struct T
{
virtual void foo (const S &) = 0;
};
struct U
{
virtual void bar (const S &) = 0;
};
struct V : public T, public U
{
virtual void bar (const S &) {}
};