rt_gccstream/gcc/testsuite/g++.dg/opt/thunk3-1.C

7 lines
191 B
C

// { dg-do compile }
// { dg-options "-O1" }
struct Foo { };
struct Bar { virtual ~Bar(); };
struct Baz: public virtual Bar { virtual void Func (Foo); };
void unused() { Baz().Func(Foo()); }