10 #pragma omp sections lastprivate (conditional: x, y)
40 #pragma omp 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 sections lastprivate (conditional: x, y) reduction (+: r, s)
112 foo ("\0\1\2\3\0\5");
113 if (x
!= 5 || y
!= 3)
116 foo ("\6\0\0\0\0\0\7");
117 if (x
!= 6 || y
!= 7)
120 foo ("\7\6\5\4\3\2\1");
121 if (x
!= 2 || y
!= 1)
124 foo ("\0\0\4\3\0\7");
125 if (x
!= 7 || y
!= 3)
128 bar ("\0\1\2\4\0\5");
129 if (x
!= 5 || y
!= 4 || t
!= 2)
132 bar ("\6\0\0\0\0\0\7");
133 if (x
!= 6 || y
!= 7 || t
!= 4)
136 bar ("\7\6\5\4\3\2\1");
137 if (x
!= 2 || y
!= 1 || t
!= 6)
140 bar ("\0\0\4\3\0\7");
141 if (x
!= 7 || y
!= 3 || t
!= 8)
144 baz ("\0\1\2\4\0\5");
145 if (x
!= 5 || y
!= 4 || r
!= 1 || s
!= 3)
148 baz ("\6\0\0\0\0\0\7");
149 if (x
!= 6 || y
!= 7 || r
!= 2 || s
!= 6)
152 baz ("\7\6\5\4\3\2\1");
153 if (x
!= 2 || y
!= 1 || r
!= 3 || s
!= 9)
156 baz ("\0\0\4\3\0\7");
157 if (x
!= 7 || y
!= 3 || r
!= 4 || s
!= 12)