blob: 9d70b102f952e67ce34581f99ae2a8872a5ffb45 [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;
}