1 2 3 4 5 6 7 8
// { dg-do assemble } class C { }; void foo() { C c; void * v = static_cast<void *>(c); // { dg-error "" } illegal cast }