aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/gomp/appendix-a/a.31.3.f90
blob: 598c904206e82c1129b44567e78274851846211e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
! { dg-do compile }
        PROGRAM A31_3_WRONG
        MAX = HUGE(0)
        M=0
        !$OMP PARALLEL DO REDUCTION(MAX: M) ! MAX is no longer the
                                            ! intrinsic so this
                                            ! is non-conforming
! { dg-error "OMP DECLARE REDUCTION max not found" "" { target *-*-* } 5 } */
        DO I = 1, 100
        CALL SUB(M,I)
        END DO
        END PROGRAM A31_3_WRONG
        SUBROUTINE SUB(M,I)
        M = MAX(M,I)
        END SUBROUTINE SUB