blob: ba32d0b072a477e4385cb4262ae898ce4a7f74ac [file] [log] [blame]
// Special g++ Options: -fexceptions -w
// excess errors test - XFAIL a29k-*-* sparc64-*-elf arm-*-pe
#include <typeinfo>
struct B {
virtual int f() { }
};
struct D {
virtual int f() { }
};
main() {
B b;
try {
(void)dynamic_cast<D&>(b);
} catch (std::bad_cast) {
return 0;
}
return 1;
}