Support -std=f2018
[official-gcc.git] / libgomp / testsuite / libgomp.graphite / force-parallel-1.c
blob0393356f9f2a38e852d7a639a8664065cf575236
1 void abort (void);
3 int x[10000000];
5 void parloop (int N)
7 int i;
9 for (i = 0; i < N; i++)
10 x[i] = i + 1;
12 for (i = 0; i < N; i++)
13 x[i] = i + 3;
15 for (i = 0; i < N; i++)
17 if (x[i] != i + 3)
18 abort ();
22 int main(void)
24 parloop(10000000);
26 return 0;
29 /* Check that parallel code generation part make the right answer. */
30 /* { dg-final { scan-tree-dump-times "2 loops carried no dependency" 1 "graphite" } } */
31 /* { dg-final { scan-tree-dump-times "loopfn" 8 "optimized" } } */