]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.pt/vbase1.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / vbase1.C
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/vbase1.C b/gcc/testsuite/g++.old-deja/g++.pt/vbase1.C
deleted file mode 100644 (file)
index d386817..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-// Check that template classes handle inherited virtual bases
-// properly, initializing them before direct non-virtual bases.
-
-extern "C" void exit (int);
-
-int aflag;
-
-struct A
-{
-  A() { aflag = 1; }
-};
-
-struct B : virtual public A 
-{
-  B() { }
-};
-
-struct C
-{
-  C() { if (!aflag) exit (1); }
-};
-
-template<class Parent>
-struct D : public C, public Parent
-{
-  D() { }
-};
-
-int
-main ()
-{
-  D<B> c;
-}