(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
Wtype-limits2.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-Wtype-limits" } */
       3  /* { dg-require-effective-target sync_char_short } */
       4  
       5  #include <stdatomic.h>
       6  
       7  unsigned foo (unsigned char *x)
       8  {
       9    if (atomic_load (x) > 1000) /* { dg-warning "comparison is always false due to limited range of data type" } */
      10      return 0;
      11    return 1;
      12  }