PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / rtti / no-rtti.C
blobfdf2e60527411303cfac57551e87b804f917b19a
1 // { dg-do compile }
2 // { dg-options "-fno-rtti" }
4 // PR C++/10891
6 struct A {
7    virtual ~A() { }
8 };
10 struct B : A {
13 A* f();
15 int main()
17    B* b = dynamic_cast<B*>(f()); // { dg-error "" }