external_procedures_3.f90

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

F90
36
字号
! { dg-do run }! Tests the fix for PR32926, in which the call to fcn! in bar would cause an ICE because it had not been referenced! in the namespace where it was declared.!! Contributed by Ralph Baker Kearfott <rbk@louisiana.edu>!subroutine foobar1  common // chr  character(8) :: chr  chr = "foobar1"end subroutinesubroutine foobar2  common // chr  character(8) :: chr  chr = "foobar2"end subroutinesubroutine foo (fcn)  external fcn  call barcontains  subroutine bar    call fcn  end subroutine barend subroutine foo  external foo, foobar1, foobar2  common // chr  character(8) :: chr  call foo (foobar1)  if (chr .ne. "foobar1") call abort ()  call foo (foobar2)  if (chr .ne. "foobar2") call abort ()end

⌨️ 快捷键说明

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