jit: Fix Darwin bootstrap after r15-1699.
[official-gcc.git] / gcc / testsuite / g++.dg / rtti / no-rtti-voidptr.C
blob2b3915d179c1caf8105c3315c4ce71b73f081815
1 // { dg-do compile }
2 // { dg-options "-fno-rtti" }
4 // PR C++/28687
6 struct A {
7   virtual ~A() { }
8 };
10 struct B : A {
13 A* f()
15   return new B();
18 int main()
20   void* b = dynamic_cast<void*>(f());