1 /* { dg-do compile } */
2 /* { dg-options "-fopenmp -fshow-column" } */
6 void foo (int j
, int k
)
12 for (i
= 0; i
< 10; i
++)
16 for (i
= j
; i
<= 10; i
+=4)
20 for (i
= j
; i
> 0; i
= i
- 1)
24 for (i
= j
; i
>= k
; i
--)
27 /* Malformed parallel loops. */
29 i
= 0; /* { dg-error "3:for statement expected" } */
37 for (i
= 0; ; i
--) /* { dg-error "missing controlling predicate" } */
40 break; /* { dg-error "break" } */
45 for (i
= 0; i
< 10 && j
> 4; i
-=3) /* { dg-error "15:invalid controlling predicate" } */
49 for (i
= 0; i
< 10; i
-=3, j
+=2) /* { dg-error "27:invalid increment expression" } */