Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.mike / eh44.C
blob27afd3fece65a7d38948e16ec58b630f7ea37a0f
1 // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
2 // { dg-options "-fexceptions" }
3 // prms-id: 9159
5 static unsigned int iCounter = 0;
6 static unsigned int iMax;
7 int fail = 0;
9 class ca {
10 public:
11   ca(int) {
12     if (iCounter++ == iMax)
13       throw (const char*)"iCounter";
14   }
15   virtual ~ca() {
16   }
19 class cc {
20 public:
21   cc(const ca &rca1, const ca &rca2) {
22   }
23   virtual ~cc() {
24     fail = 1;
25   }
29 int main(int argc, char **argv) {
30   iMax = 1;
31   try {
32     cc sc(ca(1), ca(1));
33   } catch (const char *pMsg) {
34   }
35   return fail;