aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/Wunused-value-3.c
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" } */
}