Break circular dependency between FIR dialect and utilities
[llvm-project.git] / flang / test / Semantics / modfile53.f90
blob6dda0f79b88f0c03b7565a7f9d3d4ce5c5147868
1 ! RUN: %python %S/test_modfile.py %s %flang_fc1
2 ! Ensure that a module can be forward-referenced within a compilation unit.
3 module m1
4 use m2
5 end
7 module m2
8 use m3
9 end
11 module m3
12 integer n
13 end
15 !Expect: m1.mod
16 !module m1
17 !use m2,only:n
18 !end
20 !Expect: m2.mod
21 !module m2
22 !use m3,only:n
23 !end
25 !Expect: m3.mod
26 !module m3
27 !integer(4)::n
28 !end