Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
lvalue1.C
blob: 43f2d699b9dfb603bbed363f0c2791239d907a09 [
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 "3:lvalue" "not an lvalue" }
return
c
!=
2
;
}