X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Fopt%2Frtti1.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Fopt%2Frtti1.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=32daaefa644759d78a26867c1809c90f7c8cb18e;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.dg/opt/rtti1.C b/gcc/testsuite/g++.dg/opt/rtti1.C deleted file mode 100644 index 32daaefa..00000000 --- a/gcc/testsuite/g++.dg/opt/rtti1.C +++ /dev/null @@ -1,20 +0,0 @@ -// Test that typeid sees through references even when optimizing. -// { dg-do run } -// { dg-options "-O2" } - -#include - -struct A -{ - virtual ~A() { } -}; - -class B : public A { }; - -int main () -{ - B b; - A &aref = b; - - return typeid (aref) != typeid (b); -}