proc_decl_5.f90

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

F90
29
字号
! { dg-do run }! PR fortran/33945!! PROCEDURE in the interface was wrongly rejectedmodule modproc  implicit none  interface bar    procedure x  end interface bar  procedure(sub) :: x  interface    integer function sub()    end function sub  end interfaceend module modprocinteger function x()  implicit none  x = -5end function xprogram test  use modproc  implicit none  if(x() /= -5) call abort()end program test! { dg-final { cleanup-modules "modproc" } }

⌨️ 快捷键说明

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