Merge from mainline
[official-gcc.git] / gcc / testsuite / gfortran.dg / gomp / appendix-a / a.31.3.f90
blobf67c91c215b0b6f680be02d04d53b7c5347601ec
1 ! { dg-do compile }
2 PROGRAM A31_3_WRONG
3 MAX = HUGE(0)
4 M=0
5 !$OMP PARALLEL DO REDUCTION(MAX: M) ! MAX is no longer the
6 ! intrinsic so this
7 ! is non-conforming
8 ! { dg-error "is not INTRINSIC procedure name" "" { target *-*-* } 5 } */
9 DO I = 1, 100
10 CALL SUB(M,I)
11 END DO
12 END PROGRAM A31_3_WRONG
13 SUBROUTINE SUB(M,I)
14 M = MAX(M,I)
15 END SUBROUTINE SUB