8sa1-gcc/gcc/testsuite/g++.old-deja/g++.mike/eh17.C
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

26 lines
293 B
C

// Special g++ Options: -fexceptions
// excess errors test - XFAIL a29k-*-* sparc64-*-elf sh-*-* arm-*-pe**-*
int err = 1;
struct A {
~A() {
--err;
}
};
struct B : public A {
B() {
throw 1;
}
};
main() {
try {
B b;
} catch (...) {
return err;
}
return 1;
}