brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 6d5d50f Raw
49 lines · plain
1! RUN: %python %S/test_modfile.py %s %flang_fc12! Check legacy DEC structures3module m4  structure /s1/5    integer n/1/6    integer na(2)/2,3/7    structure /s1a/ m, ma(2)8      integer j/4/9      integer ja(2)/5,6/10    end structure11    structure m2(2), m3 ! anonymous12      integer k/7/13      integer %fill(3)14      integer ka(2)/8,9/15      real %fill(2)16    end structure17  end structure18  record/s1/ ra1, rb119  record/s1a/ ra1a20  common/s1/ foo ! not a name conflict21  character*8 s1 ! not a name conflict22  integer t(2) /2*10/ ! DATA-like entity initialization23end24 25!Expect: m.mod26!module m27!structure /s1/28!integer(4)::n=1_429!integer(4)::na(1_8:2_8)=[INTEGER(4)::2_4,3_4]30!structure /s1a/m,ma(1_8:2_8)31!integer(4)::j=4_432!integer(4)::ja(1_8:2_8)=[INTEGER(4)::5_4,6_4]33!end structure34!structure m2(1_8:2_8),m335!integer(4)::k=7_436!integer(4)::%FILL(1_8:3_8)37!integer(4)::ka(1_8:2_8)=[INTEGER(4)::8_4,9_4]38!real(4)::%FILL(1_8:2_8)39!end structure40!end structure41!record/s1/::ra142!record/s1/::rb143!record/s1a/::ra1a44!real(4)::foo45!character(8_8,1)::s146!integer(4)::t(1_8:2_8)47!common/s1/foo48!end49