Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.old-deja / g++.pt / vbase1.C
blobddffa93d37d019cbcf34949bba1d025e633328d6
1 // { dg-do run  }
2 // Check that template classes handle inherited virtual bases
3 // properly, initializing them before direct non-virtual bases.
5 extern "C" void exit (int);
7 int aflag;
9 struct A
11   A() { aflag = 1; }
14 struct B : virtual public A 
16   B() { }
19 struct C
21   C() { if (!aflag) exit (1); }
24 template<class Parent>
25 struct D : public C, public Parent
27   D() { }
30 int
31 main ()
33   D<B> c;