OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [abi/] [vbase8-10.C] - Blame information for rev 825

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-options -w }
2
// { dg-do run }
3
 
4
// Copyright (C) 2001 Free Software Foundation, Inc.
5
// Contributed by Nathan Sidwell 26 Jul 2001 
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
 :  public C0
14
{};
15
class C2
16
 :  public C1
17
 ,  virtual public C0
18
{};
19
class C3
20
 :  public C1
21
 ,  public C2
22
 ,  virtual public C0
23
{};
24
class C4
25
 :  virtual public C1
26
 ,  virtual public C0
27
 ,  virtual public C3
28
 ,  public C2
29
{};
30
class C5
31
 :  public C3
32
 ,  virtual public C0
33
 ,  virtual public C2
34
{};
35
class C6
36
 :  public C1
37
 ,  public C2
38
 ,  virtual public C5
39
 ,  virtual public C3
40
 ,  virtual public C0
41
{};
42
class C7
43
 :  public C1
44
 ,  virtual public C5
45
 ,  virtual public C4
46
 ,  virtual public C2
47
 ,  virtual public C0
48
 ,  virtual public C6
49
{};
50
class C8
51
 :  virtual public C4
52
 ,  public C3
53
 ,  public C0
54
 ,  virtual public C7
55
 ,  virtual public C6
56
{};
57
class C9
58
 :  virtual public C0
59
 ,  public C4
60
 ,  public C8
61
 ,  public C1
62
 ,  public C6
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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.