]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/init7.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / init7.C
diff --git a/gcc/testsuite/g++.old-deja/g++.other/init7.C b/gcc/testsuite/g++.old-deja/g++.other/init7.C
deleted file mode 100644 (file)
index 1ecc39a..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-// simplified from testcase in Windows Developer Journal,
-// submitted by eyal.ben-david@aks.com
-
-// The initialization of a static local variable must be retried if a
-// previous try finished by throwing an exception [stmt.dcl]/4
-
-extern "C" void abort ();
-
-struct foo {
-  foo() { throw true; }
-};
-
-void bar() {
-  static foo baz;
-}
-
-int main() {
-  try {
-    bar(); // must throw
-  }
-  catch (bool) {
-    try {
-      bar(); // must throw again!
-    }
-    catch (bool) {
-      return 0;
-    }
-  }
-  abort();
-}