Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.mike / mi1.C
blobe5f01c4d6213a6053fd3ab77e4c64cf987c1664c
1 // { dg-do run  }
2 // { dg-options "-w" }
4 class A {
5 public:
6   virtual ~A(){};
7   virtual int type(void) {
8     return -1;
9   }
12 class B : public A {
13 public:
14   virtual ~B(){};
18 class C0 : public B, public virtual A {
19 public:
20   virtual int type(void) {
21     return 0;
22   }
25 class C1 : public C0
27 public:
28   virtual int type(void) {
29     return 1;
30   }
33 class C2 : public C0 {
34 public:
35   virtual int type(void) {
36     return 2;
37   }
40 main() {
41   C1 *one = new C1;
42   
43   if (one->type() != 1)
44     return 1;