[LoopReroll] Add an extra defensive check to avoid SCEV assertion.
[llvm-project.git] / flang / test / Semantics / label16.f90
blobf6cb3d49f38f9da01ee8c53a652186a1da545483
1 ! RUN: %S/test_errors.sh %s %t %flang_fc1
2 ! REQUIRES: shell
4 subroutine x(n)
5 call x1(n)
6 if (n == 0) goto 88
7 print*, 'x'
8 contains
9 subroutine x1(n)
10 if (n == 0) goto 77 ! ok
11 print*, 'x1'
12 !ERROR: Label '88' was not found
13 goto 88
14 77 end subroutine x1
15 88 end