1 extern void abort (void);
7 void nested (void) { i
++; j
++; }
9 #pragma omp taskgroup task_reduction (+: i)
11 #pragma omp task in_reduction (+: i)
13 #pragma omp task in_reduction (+: i)
16 #pragma omp taskloop reduction (+: j)
17 for (k
= 0; k
< 2; k
++)
20 #pragma omp task in_reduction (+: j)
33 #pragma omp taskgroup task_reduction (+: i)
35 #pragma omp task in_reduction (+: i)
37 #pragma omp task in_reduction (+: i)
40 #pragma omp taskloop reduction (+: j)
41 for (k
= 0; k
< 2; k
++)
44 #pragma omp task in_reduction (+: j)
55 if (foo () != (1 + 6 + (5 + 31) * 2))
57 if (bar () != (1 + 7 + (21 + 8) * 2))