projects
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
98e63a7a309544e63684966fad29e65bb1a36d3b
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
lvalue1.C
1
// Test that we complain about the gcc cast-as-lvalue extension.
2
3
int main ()
4
{
5
char c;
6
7
static_cast<int>(c) = 2; // { dg-error "lvalue" "not an lvalue" { xfail *-*-* } }
8
9
return c != 2;
10
}