summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/compat/init/dtor1.h
blob: 77e21c12ef2c8d9e0b0dea878bd1260f28e9920e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
struct B
{
  int x;
  B (int);
  ~B ();
};

struct C1 : public B {
  C1 (int);
};

struct C2 : public B {
  C2 (int);
};

struct D : public B {
  D (int);
};

struct E : public B {
  E (int);
};

struct A
  : public C1, C2, virtual public D, virtual public E
{
  A ();
  B x1;
  B x2;
};