conflicts.f90
来自「用于进行gcc测试」· F90 代码 · 共 52 行
F90
52 行
! { dg-do compile }! Check for conflicts! PR fortran/29657function f1() ! { dg-error "has no IMPLICIT type" } implicit none real, save :: f1 ! { dg-error "PROCEDURE attribute conflicts with SAVE attribute" } f1 = 1.0end function f1function f2() implicit none real :: f2 save f2 ! { dg-error "PROCEDURE attribute conflicts with SAVE attribute" } f2 = 1.0end function f2subroutine f3() implicit none dimension f3(3) ! { dg-error "PROCEDURE attribute conflicts with DIMENSION attribute" }end subroutine f3subroutine f4(b) implicit none real :: b entry b ! { dg-error "DUMMY attribute conflicts with ENTRY attribute" }end subroutine f4function f5(a) implicit none real :: a,f5 entry a ! { dg-error "DUMMY attribute conflicts with ENTRY attribute" } f5 = 3.4end function f5subroutine f6(cos) implicit none real :: cos intrinsic cos ! { dg-error "DUMMY attribute conflicts with INTRINSIC attribute" }end subroutine f6subroutine f7(sin) implicit none real :: sin external sinend subroutine f7program test implicit none dimension test(3) ! { dg-error "PROGRAM attribute conflicts with DIMENSION attribute" }end program test
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?