Break circular dependency between FIR dialect and utilities
[llvm-project.git] / flang / test / Semantics / modfile22.f90
blobef4063b4674f13312be84d777fc87f8d25fb5ce3
1 ! RUN: %python %S/test_modfile.py %s %flang_fc1
2 ! Test character length conversions in constructors
4 module m
5 type :: t(k)
6 integer, kind :: k = 1
7 character(kind=k,len=1) :: a
8 character(kind=k,len=3) :: b
9 end type t
10 type(t), parameter :: p = t(k=1)(a='xx',b='xx')
11 character(len=2), parameter :: c2(3) = [character(len=2) :: 'x', 'xx', 'xxx']
12 end module m
14 !Expect: m.mod
15 !module m
16 !type::t(k)
17 !integer(4),kind::k=1_4
18 !character(1_4,k)::a
19 !character(3_4,k)::b
20 !end type
21 !type(t(k=1_4)),parameter::p=t(k=1_4)(a="x",b="xx ")
22 !character(2_4,1),parameter::c2(1_8:3_8)=[CHARACTER(KIND=1,LEN=2)::"x ","xx","xx"]
23 !end