recursive_check_3.f90

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

F90
23
字号
! { dg-do compile }!module m1containspure pure subroutine a1(b) ! { dg-error "Duplicate PURE attribute specified" }  real, intent(in) :: b    ! { dg-error "Unexpected data declaration statement" }end subroutine a1          ! { dg-error "Expecting END MODULE" }end module m1 ! { dg-warning "CONTAINS statement without FUNCTION" }module m2containselemental elemental subroutine a2(b) ! { dg-error "Duplicate ELEMENTAL attribute" }  real, intent(in) :: b    ! { dg-error "Unexpected data declaration statement" }end subroutine a2          ! { dg-error "Expecting END MODULE" }end module m2 ! { dg-warning "CONTAINS statement without FUNCTION" }module m3containsrecursive recursive subroutine a3(b) ! { dg-error "Duplicate RECURSIVE attribute" }  real, intent(in) :: b    ! { dg-error "Unexpected data declaration statement" }end subroutine a3          ! { dg-error "Expecting END MODULE" }end module m3 ! { dg-warning "CONTAINS statement without FUNCTION" }

⌨️ 快捷键说明

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