Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / eh27.C
blobdcfb5e7a0930a064466368d051a5ce9a7af43d97
1 // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
2 // { dg-options "-fexceptions" }
4 #include <typeinfo>
6 class MyExceptionHandler { };
8 int
9 main() {
10   try {
11     throw MyExceptionHandler();
12   } catch(const MyExceptionHandler& eh) {
13     return 0;
14   } catch(...) {
15     return 1;
16   }
17   return 1;