xref: /llvm-project/flang/test/Semantics/modfile36.f90 (revision 15faac900d3b4fc17a04b3b9de421fab1bbe33db)
1dc453dcfSIvan Zhechev! RUN: %python %S/test_modfile.py %s %flang_fc1
26f300105STim Keith
36f300105STim Keith! Check modfile that contains import of use-assocation of another use-association.
46f300105STim Keith
56f300105STim Keithmodule m1
66f300105STim Keith  interface
76f300105STim Keith     subroutine s(x)
86f300105STim Keith       use, intrinsic :: iso_c_binding, only: c_ptr
96f300105STim Keith       type(c_ptr) :: x
106f300105STim Keith     end subroutine
116f300105STim Keith  end interface
126f300105STim Keithend module
136f300105STim Keith!Expect: m1.mod
146f300105STim Keith!module m1
156f300105STim Keith! interface
166f300105STim Keith!  subroutine s(x)
17*15faac90SPeter Klausler!   use,intrinsic::iso_c_binding, only: c_ptr
186f300105STim Keith!   type(c_ptr) :: x
196f300105STim Keith!  end
206f300105STim Keith! end interface
216f300105STim Keith!end
226f300105STim Keith
236f300105STim Keithmodule m2
246f300105STim Keith  use, intrinsic :: iso_c_binding, only: c_ptr
256f300105STim Keith  interface
266f300105STim Keith     subroutine s(x)
276f300105STim Keith       import :: c_ptr
286f300105STim Keith       type(c_ptr) :: x
296f300105STim Keith     end subroutine
306f300105STim Keith  end interface
316f300105STim Keithend module
326f300105STim Keith!Expect: m2.mod
336f300105STim Keith!module m2
34*15faac90SPeter Klausler! use,intrinsic::iso_c_binding,only:c_ptr
356f300105STim Keith! interface
366f300105STim Keith!  subroutine s(x)
376f300105STim Keith!   import::c_ptr
386f300105STim Keith!   type(c_ptr)::x
396f300105STim Keith!  end
406f300105STim Keith! end interface
416f300105STim Keith!end
42