2 // Check that template classes handle inherited virtual bases
3 // properly, initializing them before direct non-virtual bases.
5 extern "C" void exit (int);
14 struct B : virtual public A
21 C() { if (!aflag) exit (1); }
24 template<class Parent>
25 struct D : public C, public Parent