1 /* { dg-do compile } */
2 /* { dg-require-effective-target pthread } */
3 /* { dg-options "-O3 -ftree-parallelize-loops=2" } */
4
foo()5 int foo ()
6 {
7 int i, sum = 0, data[1024];
8
9 for(i = 0; i<1024; i++)
10 sum += data[i];
11
12 return sum;
13 }
14
15