Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / loop-bound-3.c
blob23e2f6a7ecd3fd261891d82673007c5be4572b80
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-ivopts-details" } */
4 int *a;
6 int
7 foo (unsigned char s, unsigned char l)
9 unsigned char i;
10 int sum = 0;
12 for (i = s; i > l; i -= 1)
14 sum += a[i];
17 return sum;
20 /* Check loop niter bound information. */
21 /* { dg-final { scan-tree-dump "bounded by 254" "ivopts" } } */
22 /* { dg-final { scan-tree-dump-not "bounded by 255" "ivopts" } } */