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