10 #pragma omp parallel sections lastprivate (conditional: x, y)
40 #pragma omp parallel sections lastprivate (conditional: x, y) reduction (task, +: t)
50 #pragma omp task in_reduction (+: t)
61 #pragma omp task in_reduction (+: t)
74 #pragma omp parallel sections lastprivate (conditional: x, y) reduction (+: r, s)
110 foo ("\0\1\2\3\0\5");
111 if (x
!= 5 || y
!= 3)
114 foo ("\6\0\0\0\0\0\7");
115 if (x
!= 6 || y
!= 7)
118 foo ("\7\6\5\4\3\2\1");
119 if (x
!= 2 || y
!= 1)
122 foo ("\0\0\4\3\0\7");
123 if (x
!= 7 || y
!= 3)
126 bar ("\0\1\2\4\0\5");
127 if (x
!= 5 || y
!= 4 || t
!= 2)
130 bar ("\6\0\0\0\0\0\7");
131 if (x
!= 6 || y
!= 7 || t
!= 4)
134 bar ("\7\6\5\4\3\2\1");
135 if (x
!= 2 || y
!= 1 || t
!= 6)
138 bar ("\0\0\4\3\0\7");
139 if (x
!= 7 || y
!= 3 || t
!= 8)
142 baz ("\0\1\2\4\0\5");
143 if (x
!= 5 || y
!= 4 || r
!= 1 || s
!= 3)
146 baz ("\6\0\0\0\0\0\7");
147 if (x
!= 6 || y
!= 7 || r
!= 2 || s
!= 6)
150 baz ("\7\6\5\4\3\2\1");
151 if (x
!= 2 || y
!= 1 || r
!= 3 || s
!= 9)
154 baz ("\0\0\4\3\0\7");
155 if (x
!= 7 || y
!= 3 || r
!= 4 || s
!= 12)