]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.robertl/eh990323-3.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.robertl / eh990323-3.C
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eh990323-3.C b/gcc/testsuite/g++.old-deja/g++.robertl/eh990323-3.C
deleted file mode 100644 (file)
index 9dce31c..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-// try throwing 0 cast to a class object
-extern "C" void abort ();
-extern "C" void exit (int);
-
-struct A {};
-
-void f()
-{
-       throw (A*)0;
-}
-
-int
-main()
-{
-       int flag;
-
-       flag = 0;
-       try {
-               f();
-       }
-       catch (A*) {
-               flag = 1;
-       }
-
-       if (!flag)
-               abort();
-
-       exit (0);
-}