Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / Wtype-limits2.c
blob92151aa68c9c63dab93cf083413eed208142b8d7
1 /* { dg-do compile } */
2 /* { dg-options "-Wtype-limits" } */
3 /* { dg-require-effective-target sync_char_short } */
5 #include <stdatomic.h>
7 unsigned foo (unsigned char *x)
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;