]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.eh/fntry1.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.eh / fntry1.C
diff --git a/gcc/testsuite/g++.old-deja/g++.eh/fntry1.C b/gcc/testsuite/g++.old-deja/g++.eh/fntry1.C
deleted file mode 100644 (file)
index 9c1c0ff..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-// Bug: g++ fails to treat function-try-blocks in ctors specially.
-// Submitted by Jason Merrill <jason@cygnus.com>
-
-int c;
-int r;
-
-struct A {
-  int i;
-  A(int j) { i = j; }
-  ~A() { c += i; }
-};
-
-struct B: public A {
-  A a;
-  B() try : A(1), a(2)
-    { throw 1; }
-  catch (...)
-    { if (c != 3) r |= 1; }
-};
-
-int main ()
-{
-  try
-    { B b; }
-  catch (...)
-    { c = 0; }
-
-  if (c != 0) r |= 2;
-
-  return r;
-}