2 /* { dg-additional-options "-Wparentheses -fno-openmp" } */
8 #pragma omp declare target to (bar, baz, f1, a, b, c)
15 if (a
) /* { dg-warning "ambiguous" } */
16 #pragma omp distribute
17 for (i
= 0; i
< 10; i
++)
23 if (a
) /* { dg-warning "ambiguous" } */
24 for (i
= 0; i
< 10; i
++)
25 #pragma omp distribute simd
26 for (j
= 0; j
< 10; j
++)
33 #pragma omp distribute parallel for
34 for (i
= 0; i
< 10; i
++)
35 if (b
) /* { dg-warning "ambiguous" } */
36 #pragma omp parallel for
37 for (j
= 0; j
< 10; j
++)
43 if (a
) /* { dg-warning "ambiguous" } */
44 #pragma omp distribute parallel for simd collapse(2)
45 for (i
= 0; i
< 10; i
++)
46 for (j
= 0; j
< 10; j
++)
53 #pragma omp distribute
54 for (i
= 0; i
< 10; i
++)
64 #pragma omp distribute simd
65 for (i
= 0; i
< 10; ++i
)
72 #pragma omp distribute parallel for collapse(2)
73 for (i
= 0; i
< 10; i
++)
75 for (j
= 0; j
< 10; j
++)
83 for (i
= 0; i
< 10; i
++)
84 #pragma omp distribute parallel for simd
85 for (j
= 0; j
< 10; j
++)
99 if (a
) /* { dg-warning "ambiguous" } */
100 #pragma omp target teams distribute
101 for (i
= 0; i
< 10; i
++)
107 if (a
) /* { dg-warning "ambiguous" } */
108 for (i
= 0; i
< 10; i
++)
109 #pragma omp target teams distribute simd
110 for (j
= 0; j
< 10; j
++)
117 #pragma omp target teams distribute parallel for
118 for (i
= 0; i
< 10; i
++)
119 if (b
) /* { dg-warning "ambiguous" } */
120 #pragma omp parallel for
121 for (j
= 0; j
< 10; j
++)
127 if (a
) /* { dg-warning "ambiguous" } */
128 #pragma omp target teams distribute parallel for simd collapse(2)
129 for (i
= 0; i
< 10; i
++)
130 for (j
= 0; j
< 10; j
++)
136 if (a
) /* { dg-warning "ambiguous" } */
137 #pragma omp target teams
143 if (a
) /* { dg-warning "ambiguous" } */
151 if (a
) /* { dg-warning "ambiguous" } */
158 if (a
) /* { dg-warning "ambiguous" } */
159 #pragma omp target parallel
165 if (a
) /* { dg-warning "ambiguous" } */
166 #pragma omp target simd
167 for (i
= 0; i
< 10; i
++)
173 if (a
) /* { dg-warning "ambiguous" } */
174 #pragma omp target simd collapse(2)
175 for (i
= 0; i
< 10; i
++)
176 for (j
= 0; j
< 10; j
++)
183 #pragma omp target teams distribute
184 for (i
= 0; i
< 10; i
++)
194 #pragma omp target teams distribute simd
195 for (i
= 0; i
< 10; ++i
)
202 #pragma omp target teams distribute parallel for collapse(2)
203 for (i
= 0; i
< 10; i
++)
205 for (j
= 0; j
< 10; j
++)
213 for (i
= 0; i
< 10; i
++)
214 #pragma omp target teams distribute parallel for simd
215 for (j
= 0; j
< 10; j
++)
224 #pragma omp target teams
252 #pragma omp target parallel
261 #pragma omp target simd
262 for (i
= 0; i
< 10; i
++)
271 #pragma omp target simd
272 for (i
= 0; i
< 10; i
++)
281 #pragma omp target simd collapse(2)
282 for (i
= 0; i
< 10; i
++)
284 for (j
= 0; j
< 10; j
++)
292 #pragma omp target simd collapse(2)
293 for (i
= 0; i
< 10; i
++)
295 for (j
= 0; j
< 10; j
++)
309 if (a
) /* { dg-warning "ambiguous" } */
311 #pragma omp teams distribute
312 for (i
= 0; i
< 10; i
++)
318 if (a
) /* { dg-warning "ambiguous" } */
319 for (i
= 0; i
< 10; i
++)
321 #pragma omp teams distribute simd
322 for (j
= 0; j
< 10; j
++)
330 #pragma omp teams distribute parallel for
331 for (i
= 0; i
< 10; i
++)
332 if (b
) /* { dg-warning "ambiguous" } */
333 #pragma omp parallel for
334 for (j
= 0; j
< 10; j
++)
340 if (a
) /* { dg-warning "ambiguous" } */
342 #pragma omp teams distribute parallel for simd collapse(2)
343 for (i
= 0; i
< 10; i
++)
344 for (j
= 0; j
< 10; j
++)
350 if (a
) /* { dg-warning "ambiguous" } */
358 if (a
) /* { dg-warning "ambiguous" } */
369 #pragma omp teams distribute
370 for (i
= 0; i
< 10; i
++)
381 #pragma omp teams distribute simd
382 for (i
= 0; i
< 10; ++i
)
390 #pragma omp teams distribute parallel for collapse(2)
391 for (i
= 0; i
< 10; i
++)
393 for (j
= 0; j
< 10; j
++)
401 for (i
= 0; i
< 10; i
++)
403 #pragma omp teams distribute parallel for simd
404 for (j
= 0; j
< 10; j
++)
437 if (a
) /* { dg-warning "ambiguous" } */
438 #pragma omp target data map (tofrom: b)
445 #pragma omp target data map (tofrom: b)