blob: 98e63a7a309544e63684966fad29e65bb1a36d3b [file] [log] [blame]
// Test that we complain about the gcc cast-as-lvalue extension.
int main ()
{
char c;
static_cast<int>(c) = 2; // { dg-error "lvalue" "not an lvalue" { xfail *-*-* } }
return c != 2;
}