entry_15.f90
来自「用于进行gcc测试」· F90 代码 · 共 38 行
F90
38 行
! { dg-do compile }! ! PR fortran/34137!! Entry was previously not possible in a module.! Checks also whether the different result combinations! work properly.!module m2 implicit nonecontainsfunction func(a) implicit none integer :: a, func real :: func2 func = a*8 returnentry ent(a) result(func2) ent = -a*4.0 ! { dg-error "is not a variable" } returnend function funcend module m2module m3 implicit nonecontainsfunction func(a) result(res) implicit none integer :: a, res real :: func2 res = a*12 returnentry ent(a) result(func2) ent = -a*6.0 ! { dg-error "is not a variable" } returnend function funcend module m3
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?