blob: 5c94bc1de177d56aed3ff3c0201b59fa907d6f2e [file] [log] [blame]
// { dg-do compile }
struct A { virtual ~A() { }; };
struct B : A { };
void f(B* bp)
{
bp =
#ifdef __GXX_RTTI
dynamic_cast<B*>(static_cast<A*>(0));
#endif
}