[LoopReroll] Add an extra defensive check to avoid SCEV assertion.
[llvm-project.git] / flang / test / Semantics / modfile22.f90
blob73efdb65afa3b68971eab556775c057547cfe50b
1 ! RUN: %S/test_modfile.sh %s %t %flang_fc1
2 ! REQUIRES: shell
3 ! Test character length conversions in constructors
5 module m
6 type :: t(k)
7 integer, kind :: k = 1
8 character(kind=k,len=1) :: a
9 character(kind=k,len=3) :: b
10 end type t
11 type(t), parameter :: p = t(k=1)(a='xx',b='xx')
12 character(len=2), parameter :: c2(3) = [character(len=2) :: 'x', 'xx', 'xxx']
13 end module m
15 !Expect: m.mod
16 !module m
17 !type::t(k)
18 !integer(4),kind::k=1_4
19 !character(1_4,k)::a
20 !character(3_4,k)::b
21 !end type
22 !type(t(k=1_4)),parameter::p=t(k=1_4)(a="x",b="xx ")
23 !character(2_4,1),parameter::c2(1_8:3_8)=[CHARACTER(KIND=1,LEN=2)::"x ","xx","xx"]
24 !end