URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [pr43505.f90] - Rev 694
Compare with Previous | Blame | View Log
MODULE MAIN1INTEGER , PARAMETER :: MXGLVL = 87CHARACTER(8) :: SRCTYPREAL :: GRIDWS(MXGLVL)REAL :: ZI, HSEND MODULE MAIN1PROGRAM TESTUSE MAIN1IF (HS >= ZI) THENELSEIF ( SRCTYP == 'AREA' &.OR. SRCTYP == 'AREAPOLY' &.OR. SRCTYP == 'AREACIRC' &.OR. SRCTYP == 'OPENPIT' ) THENCALL ANYAVG (MXGLVL, GRIDWS)CALL ANYAVG (MXGLVL, GRIDWS)ELSEIF ( HS > 0.0 ) THENCALL ANYAVG (MXGLVL, GRIDWS)CALL ANYAVG (MXGLVL, GRIDWS)CALL ANYAVG (MXGLVL, GRIDWS)ENDIFENDIFIF (HS.LT.ZI) THENZI = HSENDIFcontainsSUBROUTINE ANYAVG(NLVLS,HTS)INTEGER NLVLSREAL HTS(NLVLS)IF (5.LT.NLVLS) THENCALL GINTRP (HTS(5),HTS(5+1))ENDIFCALL GINTRP (HTS(5-1), HTS(5))END SUBROUTINE ANYAVGsubroutine gintrp (x1, x2)print *, x1, x2end subroutineEND PROGRAM TEST! { dg-final { cleanup-modules "main1" } }
