X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.eh%2Fterminate1.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.eh%2Fterminate1.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=95260419b3c21e412f81b0e12f21c6705c6f3c22;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.eh/terminate1.C b/gcc/testsuite/g++.old-deja/g++.eh/terminate1.C deleted file mode 100644 index 95260419..00000000 --- a/gcc/testsuite/g++.old-deja/g++.eh/terminate1.C +++ /dev/null @@ -1,27 +0,0 @@ -// Test that an exception thrown out of the constructor for the exception -// object (i.e. "after completing evaluation of the expression to be thrown -// but before the exception is caught") causes us to call terminate. - -#include -#include - -void my_terminate () -{ - std::exit (0); -} - -struct A -{ - A () {} - A (const A&) { throw 1; } -}; - -int main (void) -{ - std::set_terminate (my_terminate); - - A a; - try { throw a; } - catch (...) {} - return 1; -}