* gcc.target/i386/mpx/hard-reg-1-nov.c (mpx_test): Use "esp"
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / eh47.C
blob10eb8a8970f6428355c78caddc7c2a1693cc0c72
1 // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
2 // { dg-options "-fexceptions" }
4 #include <cstdlib>
5 #include <exception>
7 void myterm() {
8   exit (0);
11 main() {
12   try {
13     throw "";
14   } catch (...) {
15   }
16   try {
17     std::set_terminate (myterm);
18     throw;
19   } catch (...) {
20     return 1;
21   }
22   return 1;