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: Label '10' is not in scope
6! CHECK: Label '20' was not found
7! CHECK: Label '30' is not a branch target
8! CHECK: Control flow use of '30'
9! CHECK: Label '40' is not in scope
10! CHECK: Label '50' is not in scope
11
12subroutine sub00(n)
13  GOTO (10,20,30) n
14  if (n .eq. 1) then
1510   print *, "xyz"
16  end if
1730 FORMAT (1x,i6)
18end subroutine sub00
19
20subroutine sub01(n)
21  real n
22  GOTO (40,50,60) n
23  if (n .eq. 1) then
2440   print *, "xyz"
2550 end if
2660 continue
27end subroutine sub01
28