(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
Wunused-value-3.c
       1  /* PR c/39889 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-Wunused-value" } */
       4  
       5  int x;
       6  int foo (void)
       7  {
       8    return (1 ? x = 0 : (void) 0), 0; /* { dg-bogus "value computed is not used" } */
       9  }