overload_2.f90

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

F90
28
字号
! { dg-do compile }! Test the fix for PR32157, in which overloading 'LEN', as! in 'test' below would cause a compile error.!! Contributed by Michael Richmond <michael.a.richmond@nasa.gov>!subroutine len(c)  implicit none  character :: c  c = "X"end subroutine lensubroutine test()  implicit none  character :: str  external len  call len(str)  if(str /= "X") call abort()end subroutine testPROGRAM VAL implicit none external test intrinsic len call test() if(len(" ") /= 1) call abort()END

⌨️ 快捷键说明

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