2 // Testing exception specifications.
3 // Test 2: the second throw succeeds.
8 void my_term () { exit (1); }
9 void my_unexp () { throw 42; }
12 f () throw (int, std::bad_exception)
19 std::set_terminate (my_term);
20 std::set_unexpected (my_unexp);
34 catch (std::bad_exception)