]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.eh/rethrow3.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.eh / rethrow3.C
diff --git a/gcc/testsuite/g++.old-deja/g++.eh/rethrow3.C b/gcc/testsuite/g++.old-deja/g++.eh/rethrow3.C
deleted file mode 100644 (file)
index 5ab25d6..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <exception>
-
-static void
-eh_terminate ()
-{
-  printf ("CALLING TERMINATE\n");
-  exit (1);
-}
-
-void
-eh_test (int level)
-{
-  try
-    {
-      if (level < 2)
-       eh_test (level + 1);
-      else
-       {
-         printf ("%d: Throwing\n", level);
-         throw (level);
-       }
-    }
-  catch (int &x)
-    {
-      printf ("%d: Got level %d\n",
-             level, x);
-
-      if (level > 0)
-       throw;
-    }
-}
-
-int main ()
-{
-  std::set_terminate (&eh_terminate);
-  eh_test (0);
-}