Fix broken MinGW build of gcc.c
[official-gcc.git] / gcc / testsuite / gcc.dg / gomp / pr26412.c
blob6baecfe6895b9977bd0ca2f5965739041c5e9b9e
1 /* PR middle-end/26412 */
2 /* { dg-do compile } */
4 extern double a[];
5 extern int b;
7 double
8 test (void)
10 int i;
11 double c = 0;
13 #pragma omp parallel for private(i) reduction(+:c)
14 for (i = 0; i < 10000; i++)
15 c += a[b];
17 return c;