X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.eh%2Fspec4.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.eh%2Fspec4.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=a92f7f06469585d9eb4d820d5d42973cba7457ed;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.eh/spec4.C b/gcc/testsuite/g++.old-deja/g++.eh/spec4.C deleted file mode 100644 index a92f7f06..00000000 --- a/gcc/testsuite/g++.old-deja/g++.eh/spec4.C +++ /dev/null @@ -1,38 +0,0 @@ -// Testing exception specifications. -// Test 4: all throws fail, call terminate. - -#include -#include - -void my_term () { exit (0); } -void my_unexp () { throw 42; } - -void -f () throw (short) -{ - throw 'a'; -} - -int main () -{ - std::set_terminate (my_term); - std::set_unexpected (my_unexp); - - try - { - f (); - } - catch (char) - { - return 2; - } - catch (int) - { - return 3; - } - catch (std::bad_exception) - { - return 4; - } - return 5; -}