]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/dcast2.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / dcast2.C
diff --git a/gcc/testsuite/g++.old-deja/g++.other/dcast2.C b/gcc/testsuite/g++.old-deja/g++.other/dcast2.C
deleted file mode 100644 (file)
index bd343a7..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// Build don't link:
-
-// Based on a testcase by Ruslan Shevchenko <Ruslan@Shevchenko.Kiev.UA>
-
-struct B {
-  virtual ~B();
-};
-
-struct D : public B {
-};
-
-void foo() {
-  B x;
-  dynamic_cast<D*>(&x); // WARNING - will never succeed
-  B* p = &x;
-  dynamic_cast<D*>(p);
-}