1 ! RUN: %python %S/../test_errors.py %s %flang -fopenmp
10 !ERROR: The value of the parameter in the COLLAPSE or ORDERED clause must not be larger than the number of nested loops following the construct.
13 !ERROR: CYCLE statement to non-innermost associated loop of an OpenMP DO construct
23 !ERROR: The value of the parameter in the COLLAPSE or ORDERED clause must not be larger than the number of nested loops following the construct.
27 !ERROR: CYCLE statement to non-innermost associated loop of an OpenMP DO construct
36 !ERROR: The value of the parameter in the COLLAPSE or ORDERED clause must not be larger than the number of nested loops following the construct.
39 !ERROR: CYCLE statement to non-innermost associated loop of an OpenMP DO construct
50 !ERROR: The value of the parameter in the COLLAPSE or ORDERED clause must not be larger than the number of nested loops following the construct.
53 !ERROR: CYCLE statement to non-innermost associated loop of an OpenMP DO construct
54 if (i
.lt
. 1) cycle foo
64 !ERROR: The value of the parameter in the COLLAPSE or ORDERED clause must not be larger than the number of nested loops following the construct.
68 !ERROR: CYCLE statement to non-innermost associated loop of an OpenMP DO construct
81 !ERROR: CYCLE statement to non-innermost associated loop of an OpenMP DO construct
82 if (k
.lt
. 1) cycle foo
93 !ERROR: CYCLE statement to non-innermost associated loop of an OpenMP DO construct
94 if (k
.lt
. 1) cycle foo1
106 !ERROR: CYCLE statement to non-innermost associated loop of an OpenMP DO construct
107 if (k
.lt
. 1) cycle foo
118 !ERROR: CYCLE statement to non-innermost associated loop of an OpenMP DO construct
119 if (k
.lt
. 1) cycle foo
127 !ERROR: The value of the parameter in the COLLAPSE or ORDERED clause must not be larger than the number of nested loops following the construct.
128 !$omp do collapse(2) ordered(3)
131 !ERROR: CYCLE statement to non-innermost associated loop of an OpenMP DO construct
132 if (k
.lt
. 1) cycle foo
144 ifi
: if (.true
.) then
145 !ERROR: EXIT statement terminates associated loop of an OpenMP DO construct
146 if (cond(i
,j
,k
)) exit
147 if (cond(i
,j
,k
)) exit ifi
148 !ERROR: EXIT statement terminates associated loop of an OpenMP DO construct
149 if (cond(i
,j
,k
)) exit loopi
150 !ERROR: EXIT statement terminates associated loop of an OpenMP DO construct
151 if (cond(i
,j
,k
)) exit loopj
163 !ERROR: EXIT statement terminates associated loop of an OpenMP DO construct
164 if (cond(i
,j
,k
)) exit