blob: 333ddea4ffd543323e42e5deb403a46eec4d4486 (
plain)
1
2
3
4
5
6
7
8
9
|
/* 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" } */
}
|