PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / rtti / predefined-rtti-macro-1.C
blob5c94bc1de177d56aed3ff3c0201b59fa907d6f2e
1 // { dg-do compile }
3 struct A { virtual ~A() { }; };
4 struct B : A { };
6 void f(B* bp)
8   bp =
9 #ifdef __GXX_RTTI
10   dynamic_cast<B*>(static_cast<A*>(0));
11 #endif