]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.dg/eh/ctor1.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.dg / eh / ctor1.C
diff --git a/gcc/testsuite/g++.dg/eh/ctor1.C b/gcc/testsuite/g++.dg/eh/ctor1.C
deleted file mode 100644 (file)
index 0307572..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-// { dg-do run { xfail *-*-* } }
-
-// Copyright (C) 2001 Free Software Foundation, Inc.
-// Contributed by Nathan Sidwell 26 Dec 2001 <nathan@nathan@codesourcery.com>
-
-// PR 411
-
-bool was_f_in_Bar_destroyed=false;
-
-struct Foo
-{
-  ~Foo()
-  {
-    was_f_in_Bar_destroyed=true;
-  }
-};
-
-struct Bar
-{
-  ~Bar()
-  {
-    throw 1;
-  }
-  
-  Foo f;
-};
-
-int main()
-{
-  try
-    {
-      Bar f; 
-    }
-  catch(int i)
-    {
-      if(was_f_in_Bar_destroyed)
-       {
-         return 0;
-       }
-    }
-  return 1;
-}