openmp: Fix signed/unsigned warning
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr47001.c
blob53e0a4fc476675ef93ef44c2a1a8bfbb2914e76d
1 /* { dg-do compile } */
3 extern void abort (void);
5 #define N 128
7 int a[N];
9 int main1 (int res0, int res1)
11 int i;
12 int sum0 = 0, sum1 = 0;
14 for (i = 0; i < N/2; i++) {
15 sum1 += a[2*i];
16 sum0 += a[2*i];
19 /* Check results: */
20 if (sum0 != res0
21 || sum1 != res1)
22 abort ();
24 return 0;