Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / minmax-loopend.c
blob3a3b280c8042a3a501a28bc08bf4a73f3ecc10ce
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 int and_test(long a, long b, long c) {
5 int cmp1 = a < b;
6 int cmp2 = a < c;
7 return cmp1 & cmp2;
10 int ior_test (long a, long b, long c) {
11 int cmp1 = a > b;
12 int cmp2 = a > c;
13 return cmp1 | cmp2;
16 /* { dg-final { scan-tree-dump-times "MIN_EXPR" 2 "optimized" } } */