forked from mirror/waf
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
689 B
Fortran
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
|
|
|