summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/dtor1.C
blob: f9425e013df5b83ff80f60f0c92eca5a0f71d767 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// { dg-do compile { target i?86-*-* x86_64-*-* } }
// { dg-require-effective-target ilp32 }
// { dg-options "-fabi-version=0" }

struct A {
  virtual void a ();
};

struct B {
  virtual ~B ();
};

struct C : public A, public B {
  virtual void c ();
};

struct D : virtual public C {
  virtual void d ();
};

void D::d () {}

// { dg-final { scan-assembler _ZTv0_n20_N1DD1Ev } }