[LoopReroll] Add an extra defensive check to avoid SCEV assertion.
[llvm-project.git] / flang / test / Semantics / label14.f90
blob27030c9d08506a2c29501f452f47c7e80ff0a88e
1 ! Tests implemented for this standard
2 ! 11.1.4 - 4 It is permissible to branch to and end-block-stmt only withinh its
3 ! Block Construct
5 ! RUN: %flang_fc1 -fsyntax-only %s 2>&1 | FileCheck %s
6 ! CHECK: Label '20' is not in scope
8 subroutine s1
9 block
10 goto (10) 1
11 10 end block
13 block
14 20 end block
15 end
17 subroutine s2
18 block
19 goto (20) 1
20 10 end block
22 block
23 20 end block
24 end
26 subroutine s3
27 block
28 block
29 goto (10) 1
30 10 end block
31 20 end block
32 end
34 subroutine s4
35 block
36 block
37 goto (20) 1
38 10 end block
39 20 end block
40 end