result_in_spec_2.f90
来自「用于进行gcc测试」· F90 代码 · 共 32 行
F90
32 行
! { dg-do run }! Tests the fix for PR32047, in which the null agument! function for the character length would cause an ICE.!! Contributed by Tobias Burnus <burnus@gcc.gnu.org >!module test1 implicit nonecontains character(f()) function test2() result(r) interface pure function f() integer f end function f end interface r = '123' end function test2end module test1pure function f() integer :: f f = 3end function fprogram test use test1 implicit none if(len (test2()) /= 3) call abort () if(test2() /= '123') call abort ()end program test! { dg-final { cleanup-modules "test1" } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?