blob: 2443d568024bc1bfdcacf8bdde446eb62024918f [file] [log] [blame]
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-options "-fexceptions" }
int e = 1;
struct A {
~A() {
--e;
}
};
struct B : public A {
B() {
throw 1;
}
};
int
main() {
try {
B b;
} catch (...) {
return e;
}
return 1;
}