summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/virt6.C
blob: db13bb2bed8a19bb6c86ffc4e3d28ff1c9c85cc7 (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
31
32
33
34
35
36
37
38
39
40
// { dg-do run  }
// This testcase ensures that we can build vtable names for complex MI
// classes.

class C_A {
public:
  virtual int foo(void *) { return  0; }
} a;
 
class C_B : public C_A {
} b;
 
class C_C : public C_A {
} c;
 
class C_D : public C_A {
} d;
 
class C_E : public C_C, public C_B {
public:
  virtual int foo(void *) { return 0; }
} e;
 
class C_F : public C_D, public C_B {
public:
  virtual int foo(void *) { return 0; }
} f;
 
class C_G : public C_A {
public:
  virtual int foo(void *) { return 0; }
} g;
 
class C_H : public C_G, public C_E, public C_F {
public:
  virtual int foo(void *) { return 0; }
} h;
 
int main() {
}