blob: 9a905d028dfacb3f6da03b2dbe96e6bdc52fbebb [file] [log] [blame]
// { dg-do assemble }
class A {};
class C {};
int main() {
A* a = 0;
C* c = static_cast<C*>(a); // { dg-error "" } bad static cast
}