repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
abi
/
vbase8-21.C
blob
0da644625899e8b2db6fd2f3b92f47036fde0383
1
// { dg-options -w }
2
// { dg-do run }
3
4
// Copyright (C) 2001 Free Software Foundation, Inc.
5
// Contributed by Nathan Sidwell 26 Jul 2001 <nathan@codesourcery.com>
6
7
// Origin stefan@space.twc.de
8
// Bug 3145 case 10. Horribly complicated class hierarchy
9
10
class C0
11
{};
12
class C1
13
: virtual public C0
14
{};
15
class C2
16
: virtual public C1
17
, virtual public C0
18
{};
19
class C3
20
: virtual public C2
21
, virtual public C1
22
{};
23
class C4
24
: virtual public C2
25
, public C0
26
, public C1
27
{};
28
class C5
29
: virtual public C0
30
, public C2
31
, virtual public C1
32
, virtual public C3
33
, virtual public C4
34
{};
35
class C6
36
: virtual public C1
37
, virtual public C3
38
, public C0
39
, public C2
40
, virtual public C4
41
{};
42
class C7
43
: virtual public C5
44
, public C2
45
, public C6
46
, virtual public C0
47
, public C3
48
{};
49
class C8
50
: virtual public C5
51
, public C7
52
, virtual public C0
53
, virtual public C2
54
, virtual public C6
55
{};
56
class C9
57
: virtual public C2
58
, virtual public C4
59
, public C1
60
, virtual public C0
61
, public C7
62
, public C5
63
{};
64
main() {
65
C0 c0;
66
C1 c1;
67
C2 c2;
68
C3 c3;
69
C4 c4;
70
C5 c5;
71
C6 c6;
72
C7 c7;
73
C8 c8;
74
C9 c9;
75
}