blob: dbb56d58c3d7a2cc063f8a2ddf6b6f037f63f194 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Special g++ Options: -fexceptions
// excess errors test - XFAIL a29k-*-* sparc64-*-elf sh-*-* arm-*-pe**-*
void my_terminate_handler() {
exit(0);
}
void throw_an_unexpected_exception() throw() {
throw 1;
}
int main() {
set_terminate(my_terminate_handler);
throw_an_unexpected_exception();
return 1;
}
|