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