blob: 079b4c4e02d2dfbd88abf6b2e719a326d7fef8ba [file] [log] [blame]
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-options "-fexceptions" }
// prms-id: 7912
int count = 0;
class Foo {
public:
Foo() { ++count; };
Foo(const Foo&) { ++count; };
~Foo() { --count; };
};
int main()
{
try {
throw Foo();
}
catch (Foo object) {
}
return count;
}