OSDN Git Service

Initial revision
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.mike / eh55.C
1 // Special g++ Options: -fexceptions
2 // excess errors test - XFAIL a29k-*-* sparc64-*-elf sh-*-* arm-*-pe**-*
3
4 void my_terminate_handler() {
5   exit(0);
6 }
7
8 void throw_an_unexpected_exception() throw() {
9   throw 1;
10 }
11
12 int main() {
13   set_terminate(my_terminate_handler);
14   throw_an_unexpected_exception();
15   return 1;
16 }