2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / eh6.C
blobcc29ea59579bd441cd3cf59f04ea075541c1c166
1 // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
2 // { dg-options "-fexceptions" }
4 extern "C" int printf(const char *, ...);
6 void main1() {
7   throw 1;
11 int main() {
12   try {
13     main1();
14   } catch (...) {
15     printf("Unwind works!\n");
16     return 0;
17   }
18   return 1;