1 // Special g++ Options: -ansi -pedantic-errors -w
2
3 // Copyright (C) 2001 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 14 Jun 2001 <nathan@codesourcery.com>
5
6 // Bug 3145, generated by script provided by stefan@space.twc.de
7 // This is case number 9
8
9 class C0
10 {};
11 class C1
12 : public C0
13 {};
14 class C2
15 : public C1
16 , public C0
17 {};
18 class C3
19 : virtual public C0
20 , public C2
21 , virtual public C1
22 {};
23 class C4
24 : virtual public C2
25 , public C0
26 , virtual public C3
27 , public C1
28 {};
29 class C5
30 : public C0
31 , public C1
32 , public C4
33 , virtual public C2
34 , public C3
35 {};
36 class C6
37 : public C1
38 , public C3
39 , virtual public C5
40 , virtual public C2
41 , public C0
42 , virtual public C4
43 {};
44 class C7
45 : virtual public C1
46 , virtual public C0
47 , public C6
48 , virtual public C2
49 , public C5
50 {};
51 class C8
52 : virtual public C1
53 , virtual public C4
54 , public C0
55 , virtual public C7
56 , virtual public C2
57 {};
58 class C9
59 : virtual public C1
60 , virtual public C6
61 , public C8
62 , virtual public C2
63 , public C0
64 {};
main()65 int main() {
66 C0 c0;
67 C1 c1;
68 C2 c2;
69 C3 c3;
70 C4 c4;
71 C5 c5;
72 C6 c6;
73 C7 c7;
74 C8 c8;
75 C9 c9;
76 }
77