X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Feh%2Fctor1.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Feh%2Fctor1.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=0307572901eb51770c9aa2a69de8e5c70b4e7c02;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.dg/eh/ctor1.C b/gcc/testsuite/g++.dg/eh/ctor1.C deleted file mode 100644 index 03075729..00000000 --- a/gcc/testsuite/g++.dg/eh/ctor1.C +++ /dev/null @@ -1,42 +0,0 @@ -// { dg-do run { xfail *-*-* } } - -// Copyright (C) 2001 Free Software Foundation, Inc. -// Contributed by Nathan Sidwell 26 Dec 2001 - -// 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; -}