(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
compare6.c
       1  /* PR c/2098 */
       2  /* Test for a warning on comparison on out-of-range data.  */
       3  /* { dg-do compile } */
       4  /* { dg-options "-Wtype-limits" } */
       5  
       6  signed char sc;
       7  unsigned char uc;
       8  
       9  void foo()
      10  {
      11    if (sc == 10000) return; /* { dg-warning "always false" "signed" } */
      12    if (uc == 10000) return; /* { dg-warning "always false" "unsigned" } */
      13  }