X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.mike%2Feh25.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.mike%2Feh25.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=7d2f8faaa4624dbeea16fd0b8ccc1f53d0ad3812;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.mike/eh25.C b/gcc/testsuite/g++.old-deja/g++.mike/eh25.C deleted file mode 100644 index 7d2f8faa..00000000 --- a/gcc/testsuite/g++.old-deja/g++.mike/eh25.C +++ /dev/null @@ -1,31 +0,0 @@ -// Special g++ Options: -fexceptions -// excess errors test - XFAIL a29k-*-* sparc64-*-elf arm-*-pe - -#include -#include - -void my_terminate() { - exit (0); // Double faults should call terminate -} - -struct A { - A() { } - ~A() { - std::set_terminate (my_terminate); - throw 1; // This throws from EH dtor, should call my_terminate - } -}; - -main() { - try { - try { - throw 1; - } catch (int i) { - A a; // A hit on this EH dtor went to the wrong place - throw 1; - } - } catch (...) { - return 1; - } - return 1; -}