Break circular dependency between FIR dialect and utilities
[llvm-project.git] / flang / test / Semantics / modfile42.f90
blob6d5d50f282d2f9c133375c5ad8caa86cb50456d4
1 ! RUN: %python %S/test_modfile.py %s %flang_fc1
2 ! Check legacy DEC structures
3 module m
4 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 structure
11 structure m2(2), m3 ! anonymous
12 integer k/7/
13 integer %fill(3)
14 integer ka(2)/8,9/
15 real %fill(2)
16 end structure
17 end structure
18 record/s1/ ra1, rb1
19 record/s1a/ ra1a
20 common/s1/ foo ! not a name conflict
21 character*8 s1 ! not a name conflict
22 integer t(2) /2*10/ ! DATA-like entity initialization
23 end
25 !Expect: m.mod
26 !module m
27 !structure /s1/
28 !integer(4)::n=1_4
29 !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_4
32 !integer(4)::ja(1_8:2_8)=[INTEGER(4)::5_4,6_4]
33 !end structure
34 !structure m2(1_8:2_8),m3
35 !integer(4)::k=7_4
36 !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 structure
40 !end structure
41 !record/s1/::ra1
42 !record/s1/::rb1
43 !record/s1a/::ra1a
44 !real(4)::foo
45 !character(8_8,1)::s1
46 !integer(4)::t(1_8:2_8)
47 !common/s1/foo
48 !end