1 // { dg-do run { xfail sparc64-*-elf arm-*-pe } } 2 // { dg-options "-fexceptions" } 3 4 #include <exception> 5 #include <stdlib.h> 6 my_unexpected()7void my_unexpected() { 8 exit (0); 9 } 10 foo()11void foo() throw () { throw "Hi"; } 12 main()13int main() { 14 std::set_unexpected (my_unexpected); 15 foo(); 16 return 1; 17 } 18