blob: 65e683cf8fdde6521d9ae9bfb98b145583c23df9 [file] [log] [blame]
// Special g++ Options: -fexceptions
// excess errors test - XFAIL a29k-*-* sparc64-*-elf sh-*-* arm-*-pe**-*
int count;
class Foo {
public:
Foo() { ++count; }
Foo(const Foo&) { ++count; }
~Foo() { --count; }
};
main() {
try {
throw Foo();
}
catch (Foo& object) {
if (count == 1)
return 0;
}
return 1;
}