8sa1-gcc/gcc/testsuite/g++.old-deja/g++.mike/eh17.C

26 lines
293 B
C++
Raw Normal View History

1997-08-19 03:34:40 -04:00
// 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;
}