[LoopReroll] Add an extra defensive check to avoid SCEV assertion.
[llvm-project.git] / flang / test / Semantics / blockconstruct02.f90
blobcffff318514488b997c1288a9a95309a2beb75fd
1 ! RUN: %S/test_errors.sh %s %t %flang_fc1
2 ! REQUIRES: shell
3 ! C1108 -- Save statement in a BLOCK construct shall not conatin a
4 ! saved-entity-list that does not specify a common-block-name
6 program main
7 integer x, y, z
8 real r, s, t
9 common /argmnt2/ r, s, t
10 !ERROR: 'argmnt1' appears as a COMMON block in a SAVE statement but not in a COMMON statement
11 save /argmnt1/
12 block
13 !ERROR: SAVE statement in BLOCK construct may not contain a common block name 'argmnt2'
14 save /argmnt2/
15 end block
16 end program