2 // Origin: Mark Mitchell <mark@codesourcery.com>
10 typedef void (A::*F)();
13 const_cast<const A>(a); // { dg-error "" } const_cast requires pointer/ref types
14 const_cast<F>(p); // { dg-error "" } const_cast requires pointer/ref types
15 const_cast<int (*)()>(&main); // { dg-error "" } function type in const_cast
16 const_cast<int (&)()>(main); // { dg-error "" } function type in const_cast