entry_3.f90
来自「Mac OS X 10.4.9 for x86 Source Code gcc」· F90 代码 · 共 26 行
F90
26 行
! { dg-do run }! Test assumed shape arrays in procedures with multiple entry points.! Arguments that aren't present in all entry points must be treated like! optional arguments.module entry_4containssubroutine foo(a) integer, dimension(:) :: a integer, dimension(:) :: b a = (/1, 2/) returnentry bar(b) b = (/3, 4/)end subroutineend moduleprogram entry_4_prog use entry_4 integer :: a(2) a = 0 call foo(a) if (any (a .ne. (/1, 2/))) call abort call bar(a) if (any (a .ne. (/3, 4/))) call abortend program
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?