aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/opt/thunk3-1.C
blob: c540b0fa2b4f0052e410a286b30f925634b40c68 (plain)
1
2
3
4
5
6
// { 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()); }