[LoopReroll] Add an extra defensive check to avoid SCEV assertion.
[llvm-project.git] / flang / test / Semantics / symbol13.f90
blob17bd99e6ad170692a42651f8c27a386784b1e5e2
1 ! RUN: %S/test_symbols.sh %s %t %flang_fc1
2 ! REQUIRES: shell
3 ! Old-style "*length" specifiers (R723)
5 !DEF: /f1 (Function) Subprogram CHARACTER(1_8,1)
6 !DEF: /f1/x1 INTENT(IN) ObjectEntity CHARACTER(2_4,1)
7 !DEF: /f1/x2 INTENT(IN) ObjectEntity CHARACTER(3_4,1)
8 character*1 function f1(x1, x2)
9 !DEF: /f1/n PARAMETER ObjectEntity INTEGER(4)
10 integer, parameter :: n = 2
11 !REF: /f1/n
12 !REF: /f1/x1
13 !REF: /f1/x2
14 !DEF: /f1/len ELEMENTAL, INTRINSIC, PURE (Function) ProcEntity
15 character*(n), intent(in) :: x1, x2*(len(x1)+1)
16 !DEF: /f1/t DerivedType
17 type :: t
18 !REF: /f1/len
19 !REF: /f1/x2
20 !DEF: /f1/t/c1 ObjectEntity CHARACTER(4_4,1)
21 !DEF: /f1/t/c2 ObjectEntity CHARACTER(6_8,1)
22 character*(len(x2)+1) :: c1, c2*6
23 end type t
24 end function f1