reduction3.f90
来自「用于进行gcc测试」· F90 代码 · 共 71 行
F90
71 行
! { dg-do compile }module mreduction3 interface function ior (a, b) integer :: ior, a, b end function end interfacecontains function iand (a, b) integer :: iand, a, b iand = a + b end functionend module mreduction3subroutine f1 integer :: i, ior ior = 6 i = 6!$omp parallel reduction (ior:i) ! { dg-error "is not INTRINSIC procedure name" }!$omp end parallelend subroutine f1subroutine f2 integer :: i interface function ior (a, b) integer :: ior, a, b end function end interface i = 6!$omp parallel reduction (ior:i) ! { dg-error "is not INTRINSIC procedure name" } i = ior (i, 3)!$omp end parallelend subroutine f2subroutine f3 integer :: i interface function ior (a, b) integer :: ior, a, b end function end interface intrinsic ior i = 6!$omp parallel reduction (ior:i) i = ior (i, 3)!$omp end parallelend subroutine f3subroutine f4 integer :: i, ior i = 6!$omp parallel reduction (ior:i) ior = 4 ! { dg-error "is not a variable" }!$omp end parallelend subroutine f4subroutine f5 use mreduction3 integer :: i i = 6!$omp parallel reduction (ior:i) ! { dg-error "is not INTRINSIC procedure name" } i = ior (i, 7)!$omp end parallelend subroutine f5subroutine f6 use mreduction3 integer :: i i = 6!$omp parallel reduction (iand:i) ! { dg-error "is not INTRINSIC procedure name" } i = iand (i, 18)!$omp end parallelend subroutine f6! { dg-final { cleanup-modules "mreduction3" } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?