blob: 6df51c24b176759111c86791b90c8993639bc252 [file] [log] [blame]
// PR c++/60566
// We need to emit the construction vtable thunk for ~C even if we aren't
// going to use it.
struct A
{
virtual void f() = 0;
virtual ~A() {}
};
struct B: virtual A { int i; };
struct C: virtual A { int i; ~C(); };
C::~C() {}
int main() {}
// { dg-final { scan-assembler "_ZTv0_n32_N1CD1Ev" { target lp64 } } }
// { dg-final { scan-assembler "_ZTv0_n16_N1CD1Ev" { target ilp32 } } }