1! RUN: %S/test_any.sh %s %flang %t
2! negative test -- invalid labels, out of range
3
4! EXEC: ${F18} -funparse-with-symbols %s 2>&1 | ${FileCheck} %s
5! CHECK: CYCLE construct-name is not in scope
6! CHECK: IF construct name unexpected
7! CHECK: unnamed IF statement
8! CHECK: DO construct name mismatch
9! CHECK: should be
10
11subroutine sub00(a,b,n,m)
12  real a(n,m)
13  real b(n,m)
14  labelone: do i = 1, m
15     labeltwo: do j = 1, n
1650      a(i,j) = b(i,j) + 2.0
17        if (n .eq. m) then
18           cycle label3
19        end if label3
2060   end do labeltwo
21  end do label1
22end subroutine sub00
23