dummy_functions_1.f90
来自「用于进行gcc测试」· F90 代码 · 共 39 行
F90
39 行
! { dg-do compile }! PR 18197: Check that dummy functions with RESULT variable and dimension works.module innerfuncontains function f(n,x) result(y) integer, intent(in) :: n real, dimension(:), intent(in) :: x real, dimension(n) :: y y = 1 end function fend module innerfunmodule outerfuncontains subroutine foo(n,funname) integer, intent(in) :: n real, dimension(n) :: y real, dimension(2) :: x interface function funname(n,x) result(y) integer, intent(in) :: n real, dimension(:), intent(in) :: x real, dimension(n) :: y end function funname end interface y = funname(n, (/ 0.2, 0.3 /) ) end subroutine fooend module outerfunprogram test use outerfun use innerfun call foo(3,f)end program test! { dg-final { cleanup-modules "innerfun outerfun" } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?