procedure_lvalue.f90

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

F90
22
字号
! { dg-do compile }! Tests the fix for PR17911, where a USE associated l-value! would cause an ICE in gfc_conv_variable.! Test contributed by Tobias Schlueter  <tobi@gcc.gnu.org>module t  interface a     module procedure b  end interfacecontains  integer function b(x)    b = x  end function bend module tsubroutine r  use t  b = 1.       ! { dg-error "is not a VALUE" }  y = a(1.)end subroutine r! { dg-final { cleanup-modules "t" } }

⌨️ 快捷键说明

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