meson/test cases/fortran/12 submodule/a1.f90

26 lines
300 B
Fortran
Raw Normal View History

2019-02-06 05:41:44 +08:00
module a1
implicit none
interface
module elemental real function pi2tau(pi)
real, intent(in) :: pi
end function pi2tau
module real function get_pi()
end function get_pi
end interface
end module a1
program hierN
use a1
pi = get_pi()
tau = pi2tau(pi)
print *,'pi=',pi,'tau=',tau
end program