Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.old-deja / g++.mike / eh37.C
bloba98b5df997f2ac5aab79862f424c8ad8b9262f87
1 // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
2 // { dg-options "-fexceptions" }
4 #include <typeinfo>
6 class B {
7 public:
8   int data;
9   B(int i) : data(i) {
10   }
11 } b(42);
13 main() {
14   try {
15     throw &b;
16   } catch (B* b) {
17     if (b->data == 42)
18       return 0;
19   }
20   return 1;