2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-29 21:41:44 +01:00
waf/demos/fortran/mod/two_mods.f90
2011-09-10 11:13:51 +02:00

35 lines
689 B
Fortran

module MOD1
end module MOD1
module mod2
use mod1
integer :: mod2_int
! FIXME:
! replace the following line with the commented version, and recompile.
! mod/uses_two_mods.f90 should be recompiled, but currently isn't.
integer, parameter :: mod2_param = 5
! integer, parameter :: mod2_param = 6
interface mod2_proc
module procedure mod2_proc1, mod2_proc2
end interface
contains
subroutine mod2_proc1(a)
implicit none
integer, intent(inout) :: a
a = 10
end subroutine
subroutine mod2_proc2(a)
implicit none
real, intent(inout) :: a
a = 10.0
end subroutine
end module mod2