]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/virtual8.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / virtual8.C
diff --git a/gcc/testsuite/g++.old-deja/g++.other/virtual8.C b/gcc/testsuite/g++.old-deja/g++.other/virtual8.C
deleted file mode 100644 (file)
index 32c8e54..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-extern "C" int printf (const char*, ...);
-
-struct A
-{
-  virtual void f () {
-    printf ("%x\n", this);
-  }
-};
-
-struct B : public A
-{
-};
-
-struct C : public A
-{
-};
-
-struct D : virtual public B, public C
-{
-};
-
-int main ()
-{
-  D d;
-
-  A* a1 = (A*) (B*) &d;
-  A* a2 = (A*) (C*) &d;
-
-  a1->f ();
-  a2->f ();
-}