PR rtl-optimization/77919
[official-gcc.git] / libgomp / testsuite / libgomp.c / pr46886.c
blobfbdc4e130d31a3b755567ad80ddec816eee258ee
1 /* { dg-do run } */
2 /* { dg-options "-O -ftree-parallelize-loops=4 -fno-tree-ch -fno-tree-dominator-opts" } */
4 void abort(void);
6 int d[1024], e[1024];
8 int foo (void)
10 int s = 0;
11 int i;
12 for (i = 0; i < 1024; i++)
13 s += d[i] - e[i];
14 return s;
17 int main ()
19 int i;
20 for (i = 0; i < 1024; i++)
22 d[i] = i * 2;
23 e[i] = i;
25 if (foo () != 1023 * 1024 / 2)
26 abort ();
27 return 0;