URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [rtti/] [predefined-rtti-macro-1.C] - Rev 706
Go to most recent revision | Compare with Previous | Blame | View Log
// { 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
}
Go to most recent revision | Compare with Previous | Blame | View Log