pure_initializer_1.f90

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

F90
18
字号
! { dg-do compile }! Tests the fix for PR32881, in which the initialization! of 'p' generated an error because the pureness of 'bar'! escaped.!! Contributed by Janne Blomqvist <jb@gcc.gnu.org>!subroutine foo ()  integer, pointer :: p => NULL()contains  pure function bar (a)    integer, intent(in) :: a    integer :: bar    bar = a  end function barend subroutine foo

⌨️ 快捷键说明

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