]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.eh/inline2.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.eh / inline2.C
diff --git a/gcc/testsuite/g++.old-deja/g++.eh/inline2.C b/gcc/testsuite/g++.old-deja/g++.eh/inline2.C
deleted file mode 100644 (file)
index 9c80132..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-// Test that inlining a destructor with a catch block doesn't confuse the
-// enclosing try block.
-// Special g++ Options: -O
-
-struct A {
-  ~A()
-  {
-    try { throw 1; }
-    catch (...) { }
-  }
-};
-
-int main ()
-{
-  try
-    {
-      A a;
-      throw 42;
-    }
-  catch (int i)
-    {
-      return (i != 42);
-    }
-}