interface_21.f90

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

F90
23
字号
! { dg-do compile }! PR33162 INTRINSIC functions as ACTUAL argument! Test case adapted from PR by Jerry DeLisle <jvdelisle@gcc.gnu.org>module mimplicit nonecontains  subroutine sub(a)    interface      function a(x)        real :: a, x        intent(in) :: x      end function a    end interface    print *, a(4.0)  end subroutine subend module muse mimplicit noneEXTERNAL foo  ! implicit interface is undefinedcall sub(foo) ! { dg-error "Type/rank mismatch in argument" }end

⌨️ 快捷键说明

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