two_mods.f90 689 B

12345678910111213141516171819202122232425262728293031323334
  1. module MOD1
  2. end module MOD1
  3. module mod2
  4. use mod1
  5. integer :: mod2_int
  6. ! FIXME:
  7. ! replace the following line with the commented version, and recompile.
  8. ! mod/uses_two_mods.f90 should be recompiled, but currently isn't.
  9. integer, parameter :: mod2_param = 5
  10. ! integer, parameter :: mod2_param = 6
  11. interface mod2_proc
  12. module procedure mod2_proc1, mod2_proc2
  13. end interface
  14. contains
  15. subroutine mod2_proc1(a)
  16. implicit none
  17. integer, intent(inout) :: a
  18. a = 10
  19. end subroutine
  20. subroutine mod2_proc2(a)
  21. implicit none
  22. real, intent(inout) :: a
  23. a = 10.0
  24. end subroutine
  25. end module mod2