intent_out_1.f90
来自「用于进行gcc测试」· F90 代码 · 共 20 行
F90
20 行
! { dg-do compile }! Tests the fix for PRs 18578, 18579 and their repeats 20857 and 20885.! Contributed by Paul Thomas <pault@gcc@gnu.org> real, parameter :: a =42.0 real :: b call foo(b + 2.0) ! { dg-error "must be definable" } call foo(a) ! { dg-error "must be definable" } call bar(b + 2.0) ! { dg-error "must be definable" } call bar(a) ! { dg-error "must be definable" }contains subroutine foo(a) real, intent(out) :: a a = 0.0 end subroutine foo subroutine bar(a) real, intent(INout) :: a a = 0.0 end subroutine barend
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?