contained_1.f90

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

F90
36
字号
! PR15986! Siblings may be used as actual arguments, in which case they look like! variables during parsing.  Also checks that actual variables aren't replaced! by siblings with the same name! { dg-do run }module contained_1_modinteger icontainssubroutine a  integer :: c = 42  call sub(b, c)end subroutine asubroutine b()  i = i + 1end subroutine bsubroutine cend subroutineend modulesubroutine sub (proc, var)  external proc1  integer var  if (var .ne. 42) call abort  call procend subroutineprogram contained_1  use contained_1_mod  i = 0  call a  if (i .ne. 1) call abortend program! { dg-final { cleanup-modules "contained_1_mod" } }

⌨️ 快捷键说明

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