pointer_intent_2.f90
来自「用于进行gcc测试」· F90 代码 · 共 20 行
F90
20 行
! { dg-do compile }! { dg-options "-std=f95" }! { dg-shouldfail "Fortran 2003 feature with -std=f95" }!! Pointer intent test! PR fortran/29624!! Fortran 2003 features in Fortran 95program test implicit none integer, pointer :: p allocate(p) p = 33 call a(p) ! { dg-error "Type mismatch in argument" }contains subroutine a(p)! { dg-error "has no IMPLICIT type" } integer, pointer,intent(in) :: p ! { dg-error "POINTER attribute with INTENT attribute" } end subroutineend program
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?