Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / cunroll-9.c
blob0e4407dcbd75b2dfce978b76edf38049f5285310
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-cunrolli-details" } */
3 void abort (void);
4 int q (void);
5 int a[10];
6 int b[11];
7 int
8 t (int n)
10 int i;
11 int sum = 0;
12 for (i = 0; i < n; i++)
14 if (i > 1000)
15 abort ();
16 if (q ())
17 sum += a[i];
18 else
19 sum += b[i];
21 return sum;
23 /* { dg-final { scan-tree-dump-times "Removed pointless exit:" 1 "cunrolli" } } */