1 ! RUN: %python %S/test_modfile.py %s %flang_fc1
2 ! Verify miscellaneous bugs
4 ! The function result must be declared after the dummy arguments
7 function f1(x
) result(y
)
13 integer :: f2(size(x
))
20 ! function f1(x) result(y)
22 ! integer(4)::y(1_8:size(x,dim=1,kind=8))
26 ! integer(4)::f2(1_8:size(x,dim=1,kind=8))
30 ! Order of names in PUBLIC statement shouldn't affect .mod file.
35 type(t
), parameter :: a
= t()
42 ! type(t),parameter::a=t()
46 integer, parameter :: i4
= selected_int_kind(9)
55 ! integer(4),parameter::i4=4_4
56 ! intrinsic::selected_int_kind
65 ! Test that character literals written with backslash escapes are read correctly.
67 character(1), parameter :: a
= achar(1)
71 character(1), parameter :: b
= a
76 ! character(1_4,1),parameter::a="\001"
83 ! character(1_4,1),parameter::b="\001"