9 #pragma omp for schedule // { dg-error "expected '\\('" }
10 for (i
= 0; i
< 10; ++i
) ;
12 #pragma omp for schedule static // { dg-error "expected '\\('" }
13 for (i
= 0; i
< 10; ++i
) ;
15 #pragma omp for schedule ( // { dg-error "invalid schedule kind" }
16 for (i
= 0; i
< 10; ++i
) ;
18 #pragma omp for schedule ( static // { dg-error "expected" }
19 for (i
= 0; i
< 10; ++i
) ;
21 #pragma omp for schedule ( static )
22 for (i
= 0; i
< 10; ++i
) ;
24 #pragma omp for schedule ( foo ) // { dg-error "invalid schedule kind" }
25 for (i
= 0; i
< 10; ++i
) ;
27 #pragma omp for schedule ( static 1 // { dg-error "expected" }
28 for (i
= 0; i
< 10; ++i
) ;
30 #pragma omp for schedule ( static 1 ) nowait // { dg-error "expected" }
31 for (i
= 0; i
< 10; ++i
) ;
33 #pragma omp for schedule ( static, 1 ) nowait
34 for (i
= 0; i
< 10; ++i
) ;
36 #pragma omp for schedule ( static, 1, 1 ) nowait // { dg-error "expected '\\)'" }
37 for (i
= 0; i
< 10; ++i
) ;
39 #pragma omp for schedule ( static, 1 + 1 ) nowait
40 for (i
= 0; i
< 10; ++i
) ;
42 #pragma omp for schedule ( static, 1.0 ) // { dg-error "expected integer expression" }
43 for (i
= 0; i
< 10; ++i
) ;
45 #pragma omp for schedule (dynamic)
46 for (i
= 0; i
< 10; ++i
) ;
48 #pragma omp for schedule (dynamic, bar ())
49 for (i
= 0; i
< 10; ++i
) ;
51 #pragma omp for schedule (guided)
52 for (i
= 0; i
< 10; ++i
) ;
54 #pragma omp for schedule (guided, bar ())
55 for (i
= 0; i
< 10; ++i
) ;
57 #pragma omp for schedule (runtime)
58 for (i
= 0; i
< 10; ++i
) ;
60 #pragma omp for schedule (runtime, bar ()) // { dg-error "does not take" }
61 for (i
= 0; i
< 10; ++i
) ;