1 // { dg-do compile }
2 
~AA3 struct A { virtual ~A() { }; };
4 struct B : A { };
5 
f(B * bp)6 void f(B* bp)
7 {
8   bp =
9 #ifdef __GXX_RTTI
10   dynamic_cast<B*>(static_cast<A*>(0));
11 #endif
12 }
13