contained_3.f90
来自「用于进行gcc测试」· F90 代码 · 共 23 行
F90
23 行
! Program to test contained functions calling their siblings.! This is tricky because we don't find the declaration for the sibling! function until after the caller has been parsed.program contained_3 call testcontains subroutine test if (sub(3) .ne. 6) call abort end subroutine integer function sub(i) integer i if (i .gt. 1) then sub = sub2(i) * i else sub = 1 end if end function integer function sub2(i) integer i sub2 = sub(i - 1) end functionend program
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?