Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-narrowbopcst-1.c
blob8a33677c274ddeb57a062da774b8b62358201f1d
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-optimized" } */
4 int foo1 (unsigned char a[], unsigned int x)
6 unsigned int i;
7 for (i = 0; i < 1000; i++)
9 x = a[i];
10 a[i] = (unsigned char)(x >= 100 ? x - 100 : 0);
12 return x;
14 /* { dg-final { scan-tree-dump " = _.* \\+ 156" "optimized" } } */