1 /* { dg-do compile } */ 2 /* { dg-options "-Wtype-limits" } */ 3 /* { dg-require-effective-target sync_char_short } */ 4 5 #include <stdatomic.h> 6 foo(unsigned char * x)7unsigned 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 } 13