(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr52904.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-Wstrict-overflow -O2" } */
       3  extern int foo (int);
       4  
       5  int
       6  wait_reading_process_output (void)
       7  {
       8    int nfds = 0;
       9    int channel;
      10  
      11    for (channel = 0; channel < 1024; ++channel)
      12      {
      13        if (foo (channel))
      14  	nfds++;
      15      }
      16  
      17    if (nfds < 0) /* { dg-bogus "assuming signed overflow does not occur" "" } */
      18      return 1;
      19    return 0;
      20  }