]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.dg/opt/rtti1.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.dg / opt / rtti1.C
diff --git a/gcc/testsuite/g++.dg/opt/rtti1.C b/gcc/testsuite/g++.dg/opt/rtti1.C
deleted file mode 100644 (file)
index 32daaef..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-// Test that typeid sees through references even when optimizing.
-// { dg-do run }
-// { dg-options "-O2" }
-
-#include <typeinfo>
-
-struct A
-{
-  virtual ~A() { }
-};
-
-class B : public A { };
-
-int main ()
-{
-  B b;
-  A &aref = b;
-
-  return typeid (aref) != typeid (b);
-}