1 /* { dg-do compile } */
2 /* { dg-options "-fopenmp -fshow-column" } */
4 void foo (int j, int k)
10 for (i = 0; i < 10; i++)
14 for (i = j; i <= 10; i+=4)
18 for (i = j; i > 0; i = i - 1)
22 for (i = j; i >= k; i--)
25 /* Malformed parallel loops. */
27 i = 0; /* { dg-error "3:for statement expected" } */
35 for (i = 0; ; i--) /* { dg-error "missing controlling predicate" } */
38 break; /* { dg-error "break" } */
43 for (i = 0; i < 10 && j > 4; i-=3) /* { dg-error "15:invalid controlling predicate" } */
47 for (i = 0; i < 10; i-=3, j+=2) /* { dg-error "27:invalid increment expression" } */