diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/dcast2.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/dcast2.C | 17 |
1 files changed, 0 insertions, 17 deletions
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 index bd343a7e61d..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.other/dcast2.C +++ /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); -} |