Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.mike / eh29.C
blob892e959647e1cf7f273859fc53dc402f4b79c5f0
1 // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
2 // { dg-options "-fexceptions" }
4 int count;
6 class A {
7 public:
8   A() {
9 //    printf("ctor %x\n", (int)this);
10     if (count==3)
11       throw 1;
12     ++count;
13     }
14   ~A() {
15     --count;
16 //    printf("dtor %x\n", (int)this);
17   }
20 main() {
21   try {
22     A a[5];
23   } catch (...) {
24     return count;
25   }
26   return 1;