1 // { dg-do assemble  }
2 // GROUPS passed constructors
3 // ctor file
4 // Message-Id: <199301310203.AA22417@oak.ucsc.edu>
5 // From: "Dean R. E. Long" <dlong@cse.ucsc.edu>
6 // Subject: problems with default constructors
7 // Date: Sat, 30 Jan 1993 18:03:32 -0800
8 
9 class A0 {
10 };
11 
12 class A1 {
13 public:
A1(void)14     A1(void) {}
15 };
16 
17 class A2 {
18     A1 a;
19 };
20 
21 class B0 : public A0 {
22 public:
B0(void)23     B0(void) {}
B0(int)24     B0(int)  {}
B0(char)25     B0(char) : A0() {}
B0(short)26     B0(short) : A0() {}
27 };
28 
29 class B1 : public A1 {
30 public:
31 };
32 
33 class B2 : public A2 {
34 public:
B2(void)35     B2(void) : A2() {}
B2(int)36     B2(int)  : A2() {}
37 };
38 
39 class C : public B1 {
40 public:
C(void)41     C(void) : B1() {}
C(int)42     C(int)  : B1() {}
43 };
44