* lib/target-supports.exp (check_effective_target_vxworks_kernel):
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / eh27.C
blob8be08da8c26b2cb9417850ee3ea7cd26d295df89
1 // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
2 // { dg-options "-fexceptions" }
4 #include <typeinfo>
6 class MyExceptionHandler { };
8 main() {
9   try {
10     throw MyExceptionHandler();
11   } catch(const MyExceptionHandler& eh) {
12     return 0;
13   } catch(...) {
14     return 1;
15   }
16   return 1;