blob: 234b745f3a386e3cf0f67f42b07235ce031c0f0d [file] [log] [blame]
// Special g++ Options: -fexceptions
// excess errors test - XFAIL hppa*-*-* a29k-*-* sparc64-*-elf sh-*-* z8k-*-* arm-*-pe**-*
#include <exception>
void my_unexpected() {
throw 42;
}
void foo() throw (int) { throw "Hi"; }
int main() {
std::set_unexpected (my_unexpected);
try {
foo();
} catch (int i) {
if (i == 42)
return 0;
}
return 1;
}