mirror of
https://github.com/autc04/Retro68.git
synced 2024-08-18 12:29:08 +00:00
17 lines
459 B
Fortran
17 lines
459 B
Fortran
|
! { dg-do run }
|
||
|
MODULE MOD
|
||
|
INTRINSIC MAX, MIN
|
||
|
END MODULE MOD
|
||
|
PROGRAM A31_5
|
||
|
USE MOD, MIN=>MAX, MAX=>MIN
|
||
|
REAL :: R
|
||
|
R = -HUGE(0.0)
|
||
|
!$OMP PARALLEL DO REDUCTION(MIN: R) ! still does MAX
|
||
|
DO I = 1, 1000
|
||
|
R = MIN(R, SIN(REAL(I)))
|
||
|
END DO
|
||
|
PRINT *, R
|
||
|
END PROGRAM A31_5
|
||
|
|
||
|
! { dg-final { cleanup-modules "mod" } }
|