Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / minus-ovf.c
blobaad66bbcb0614601a9017cf021032307df95e3e4
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-optimized" } */
4 int f(unsigned a, unsigned b) {
5 unsigned remove = a - b;
6 return remove > a;
9 int g(unsigned a, unsigned b) {
10 unsigned remove = a - b;
11 return remove <= a;
14 int h(unsigned a, unsigned b) {
15 unsigned remove = a - b;
16 return a < remove;
19 int i(unsigned a, unsigned b) {
20 unsigned remove = a - b;
21 return a >= remove;
24 /* { dg-final { scan-tree-dump-not "remove" "optimized" } } */