2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / p7912.C
blobe5584ec4cd9196bf079b425fb802872989af7904
1 // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
2 // { dg-options "-fexceptions" }
3 // prms-id: 7912
5 int count = 0;
7 class Foo {
8 public:
9   Foo() { ++count; };
10   Foo(const Foo&) { ++count; };
11   ~Foo() { --count; };
15 main()
17   try {
18     throw Foo();
19   }
20   catch (Foo object) {
21   }
22   return count;