Sign in
gnu
/
gcc
/
dc9b9e310659bc1320d94355d18ea0fe64b13df6
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
lvalue1.C
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
;
}