// { dg-do assemble } // Origin: Mark Mitchell void f() { int *i = 0; const int *c = 0; static_cast (i); static_cast (c); // { dg-error "" } casts away constness }