1 // PR c++/60566
2 // We need to emit the construction vtable thunk for ~C even if we aren't
3 // going to use it.
4 
5 struct A
6 {
7   virtual void f() = 0;
~AA8   virtual ~A() {}
9 };
10 
11 struct B: virtual A { int i; };
12 struct C: virtual A { int i; ~C(); };
13 
~C()14 C::~C() {}
15 
main()16 int main() {}
17 
18 // { dg-final { scan-assembler "_ZTv0_n32_N1CD1Ev" { target lp64 } } }
19 // { dg-final { scan-assembler "_ZTv0_n16_N1CD1Ev" { target ilp32 } } }
20