libgo: update to Go1.10beta1
[official-gcc.git] / gcc / testsuite / c-c++-common / gomp / pr54017.c
blob724efe1363842c101e23e4a4ff06bf207eaf9985
1 /* PR middle-end/54017 */
2 /* { dg-do compile } */
3 /* { dg-options "-fopenmp" } */
5 void
6 f1 (void)
8 #pragma omp parallel sections
10 #pragma omp section
12 for (;;)
18 int
19 f2 (void)
21 int i = 0;
22 #pragma omp parallel
23 #pragma omp sections reduction(+:i)
25 #pragma omp section
27 for (;;)
31 return i;
34 void
35 f3 (void)
37 #pragma omp parallel sections
39 #pragma omp section
41 for (;;)
44 #pragma omp section
49 int
50 f4 (void)
52 int i = 0;
53 #pragma omp parallel
54 #pragma omp sections reduction(+:i)
56 #pragma omp section
58 for (;;)
61 #pragma omp section
64 return i;