interface_19.f90

来自「用于进行gcc测试」· F90 代码 · 共 30 行

F90
30
字号
! { dg-do run }! PR33162 INTRINSIC functions as ACTUAL argument! Test case adapted from PR by Jerry DeLisle <jvdelisle@gcc.gnu.org>module mimplicit nonecontains  subroutine sub(a)    optional :: a    character(25) :: temp    interface      function a(x)        real(kind=8):: a        real(kind=8):: x        intent(in) :: x      end function a    end interface    if(present(a)) then      write(temp,'(f16.10)')a(4.0d0)      if (trim(temp) /= '   -0.6536436209') call abort    endif  end subroutine subend module muse mimplicit noneintrinsic dcoscall sub()call sub(dcos)end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?