RISC-V: Add testcases for unsigned scalar .SAT_ADD IMM form 4
[official-gcc.git] / gcc / testsuite / gcc.dg / Wstrict-overflow-7.c
blob401cbc3c98717d959210e9418111c1be3266fcdf
1 /* { dg-do compile } */
2 /* { dg-options "-fstrict-overflow -O2 -Wstrict-overflow" } */
4 /* Source: Ian Lance Taylor. */
6 int
7 foo (int i)
9 return i + 10 > i; /* { dg-warning "assuming signed overflow does not occur" "correct warning" { xfail *-*-* } } */