xref: /llvm-project/flang/test/Semantics/modfile53.f90 (revision 2e4499e749c0e0da71b70247e66f33f7e76991a2)
1! RUN: %python %S/test_modfile.py %s %flang_fc1
2! Ensure that a module can be forward-referenced within a compilation unit.
3module m1
4  use m2
5end
6
7module m2
8  use m3
9end
10
11module m3
12  integer n
13end
14
15!Expect: m1.mod
16!module m1
17!use m2,only:n
18!end
19
20!Expect: m2.mod
21!module m2
22!use m3,only:n
23!end
24
25!Expect: m3.mod
26!module m3
27!integer(4)::n
28!end
29