]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.dg/eh/filter1.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.dg / eh / filter1.C
diff --git a/gcc/testsuite/g++.dg/eh/filter1.C b/gcc/testsuite/g++.dg/eh/filter1.C
deleted file mode 100644 (file)
index 6ff0574..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-// Test that cleanups get run when a catch filter fails to match.
-// { dg-do run }
-
-extern "C" void exit(int);
-extern "C" void abort();
-
-struct a
-{
-  a();
-  ~a();
-};
-
-struct e1 {};
-struct e2 {};
-
-void
-ex_test ()
-{
-  a aa;
-  try
-    {
-      throw e1 ();
-    }
-  catch (e2 &)
-    {
-    }
-}
-
-int
-main ()
-{
-  try
-    {
-      ex_test ();
-    }
-  catch (...)
-    {
-    }
-  abort ();
-}
-
-a::a() { }
-a::~a() { exit (0); }