]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.eh/cleanup1.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.eh / cleanup1.C
diff --git a/gcc/testsuite/g++.old-deja/g++.eh/cleanup1.C b/gcc/testsuite/g++.old-deja/g++.eh/cleanup1.C
deleted file mode 100644 (file)
index 6faea26..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-// Bug: obj gets destroyed twice because the fixups for the return are
-// inside its cleanup region.
-
-extern "C" int printf (const char *, ...);
-
-int d;
-
-struct myExc { };
-
-struct myExcRaiser {
-  ~myExcRaiser() { throw myExc(); }
-};
-
-struct stackObj {
-  ~stackObj() { ++d; printf ("stackObj::~stackObj()\n"); };
-};
-
-int test()
-{
-  myExcRaiser rais;
-  stackObj obj;
-  return 0;
-}
-
-int main()
-{
-  try {
-    test();
-  }
-  catch (myExc &) {
-    return d != 1;
-  }
-  return 1;
-}