Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.mike / eh55.C
blob1482680745fd504f6c2e2f7efe1305210fe1c90c
1 // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
2 // { dg-options "-fexceptions" }
4 #include <exception>
5 #include <stdlib.h>
7 void my_terminate_handler() {
8   exit(0);
11 void throw_an_unexpected_exception() throw() {
12   throw 1;
15 int main() {
16   std::set_terminate(my_terminate_handler);
17   throw_an_unexpected_exception();
18   return 1;