Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ivopt_5.c
blob68003c8eef226daf3abf4b5dc58a0debe81efb9a
1 /* { dg-options "-O2 -fdump-tree-ivopts -fkeep-gc-roots-live" } */
3 /* Only integer ivopts here when using -fkeep-gc-roots-live. */
5 void foo (char *pstart, int n)
7 char *p;
8 char *pend = pstart + n;
10 for (p = pstart; p < pend; p++)
11 *p = 1;
14 void foo1 (char *pstart, int n)
16 char *p;
17 char *pend = pstart + n;
19 for (p = pstart; p != pend; p++)
20 *p = 1;
23 /* { dg-final { scan-tree-dump-times "ivtmp.\[0-9_\]* = PHI <\[^0\]\[^,\]*, \[^0\]" 0 "ivopts"} } */