proc_decl_10.f90

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

F90
33
字号
! { dg-do compile }! PR33162 INTRINSIC functions as ACTUAL argument! Test case adapted from PR by Jerry DeLisle <jvdelisle@gcc.gnu.org>module mimplicit none  interface    double precision function my1(x)      double precision, intent(in) :: x    end function my1  end interface  interface    real(kind=4) function my2(x)      real, intent(in) :: x    end function my2  end interface  interface    real function  my3(x, y)      real, intent(in) :: x, y    end function my3  end interfaceend moduleprogram testuse mimplicit noneprocedure(dcos):: my1 ! { dg-error "Cannot change attributes" }procedure(cos) :: my2 ! { dg-error "Cannot change attributes" }procedure(dprod) :: my3 ! { dg-error "Cannot change attributes" }end program test! { dg-final { cleanup-modules "m" } }

⌨️ 快捷键说明

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