]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.dg/eh/dtor1.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.dg / eh / dtor1.C
diff --git a/gcc/testsuite/g++.dg/eh/dtor1.C b/gcc/testsuite/g++.dg/eh/dtor1.C
deleted file mode 100644 (file)
index fee2ecd..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-// PR c++/411
-
-// Test that a fully-constructed base is destroyed before transferring
-// control to the handler of a function-try-block.
-
-// { dg-do run { xfail *-*-* } }
-
-int ad;
-int r;
-
-struct A {
-  ~A() { ++ad; }
-};
-
-struct B: public A {
-  ~B();
-};
-
-B::~B ()
-try
-  {
-    throw 1;
-  }
-catch (...)
-  {
-    if (!ad)
-      r = 1;
-    return;
-  }
-
-int main ()
-{
-  { B b; }
-  return r;
-}