1 ! RUN: %S/test_errors.sh %s %t %flang -fopenmp
9 !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.
12 !ERROR: CYCLE statement to non-innermost associated loop of an OpenMP DO construct
22 !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.
26 !ERROR: CYCLE statement to non-innermost associated loop of an OpenMP DO construct
35 !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.
38 !ERROR: CYCLE statement to non-innermost associated loop of an OpenMP DO construct
49 !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.
52 !ERROR: CYCLE statement to non-innermost associated loop of an OpenMP DO construct
53 if (i
.lt
. 1) cycle foo
63 !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.
67 !ERROR: CYCLE statement to non-innermost associated loop of an OpenMP DO construct
80 !ERROR: CYCLE statement to non-innermost associated loop of an OpenMP DO construct
81 if (k
.lt
. 1) cycle foo
92 !ERROR: CYCLE statement to non-innermost associated loop of an OpenMP DO construct
93 if (k
.lt
. 1) cycle foo1
105 !ERROR: CYCLE statement to non-innermost associated loop of an OpenMP DO construct
106 if (k
.lt
. 1) cycle foo
117 !ERROR: CYCLE statement to non-innermost associated loop of an OpenMP DO construct
118 if (k
.lt
. 1) cycle foo
126 !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.
127 !$omp do collapse(2) ordered(3)
130 !ERROR: CYCLE statement to non-innermost associated loop of an OpenMP DO construct
131 if (k
.lt
. 1) cycle foo