921e5a0eb4
From-SVN: r14840
26 lines
293 B
C
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;
|
|
}
|