rt_gccstream/gcc/testsuite/g++.old-deja/g++.mike/eh47.C

24 lines
311 B
C

// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-options "-fexceptions" }
#include <cstdlib>
#include <exception>
void myterm() {
exit (0);
}
main() {
try {
throw "";
} catch (...) {
}
try {
std::set_terminate (myterm);
throw;
} catch (...) {
return 1;
}
return 1;
}