Sign in
gnu
/
gcc
/
19220ca6aa79921cc431e41f25986e16410c7a6a
/
.
/
gcc
/
testsuite
/
gcc.dg
/
cast-lvalue-1.c
blob: 1e0f04a63d437fbe8f0aaaafb2a38cd484410c4b [
file
] [
log
] [
blame
]
/* Test for deprecation of casts as lvalues. */
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
/* { dg-do compile } */
/* { dg-options "" } */
int
x
;
void
foo
(
void
)
{
(
char
)
x
=
1
;
/* { dg-warning "lvalue" "cast as lvalue deprecated" } */
}