Sign in
gnu
/
gcc
/
a5878983d53db7513edb0e6bd99250dbb0c7d147
/
.
/
gcc
/
testsuite
/
gcc.dg
/
Wunused-value-3.c
blob: 333ddea4ffd543323e42e5deb403a46eec4d4486 [
file
] [
log
] [
blame
]
/* PR c/39889 */
/* { dg-do compile } */
/* { dg-options "-Wunused-value" } */
int
x
;
int
foo
(
void
)
{
return
(
1
?
x
=
0
:
(
void
)
0
),
0
;
/* { dg-bogus "value computed is not used" } */
}