]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.mike/eh24.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / eh24.C
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/eh24.C b/gcc/testsuite/g++.old-deja/g++.mike/eh24.C
deleted file mode 100644 (file)
index 0eb2c7b..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-// Special g++ Options: -fexceptions
-// excess errors test - XFAIL a29k-*-* sparc64-*-elf arm-*-pe
-
-int fail = 0;
-
-struct A {
-  int ok;
-  A() {
-    ok = 1;
-  }
-  ~A() {
-    if (! ok)
-      fail = 1;
-    ok = 0;
-  }
-};
-
-main() {
-  try {
-    try {
-      A  a;
-      throw 1.0;
-    } catch (double i) {
-      A a1;
-      throw 1;    // make sure both a1 and a2 are not destroyed when we throw!
-    } catch (int i) {
-      A a2;
-      throw 1.0;
-    }
-  } catch (int i) {
-  }
-  return fail;
-}