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