* gcc.dg/torture/stackalign/builtin-apply-2.c: Fix skip-if syntax.
[official-gcc.git] / gcc / testsuite / gcc.dg / graphite / isl-ast-gen-if-1.c
bloba0eb24216db7e8ec75582a38b87436d9ad25d122
1 int st = 1;
2 static void __attribute__((noinline))
3 foo (int a[], int n)
5 int i;
6 for (i = 0; i < n; i++)
8 if (i < 25)
9 a[i] = i;
10 a[n - i] = 1;
14 static int __attribute__((noinline))
15 array_sum (int a[])
17 int i, res = 0;
18 for(i = 0; i < 50; i += st)
19 res += a[i];
20 return res;
23 extern void abort ();
25 int
26 main (void)
28 int a[51]; /* NB This size allows foo's first iteration to write to a[50]. */
29 foo (a, 50);
30 int res = array_sum (a);
31 if (res != 49)
32 abort ();
33 return 0;