function_module_1.f90

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

F90
37
字号
! This can fail because BB is not resolved correctly.module M1INTEGER pCONTAINSsubroutine AA ()   implicit NONE   p = BB () CONTAINS   subroutine AA_1 ()     implicit NONE     integer :: i     i = BB ()   end subroutine   function BB()   integer :: BB     BB = 1   end functionend subroutine function BB()  implicit NONE  integer :: BB  BB = 2end functionend moduleprogram P1  USE M1  implicit none  p = 0  call AA ()  if (p /= 1) call abortend

⌨️ 快捷键说明

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