summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/graphite/pr38083.f90
blob: da8c3cc7914de4e6adb061464f8736426f660c0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
! { dg-options "-O3 " }

SUBROUTINE IVSORT (IL,IH,NSEGS,IOUNIT)
  INTEGER IOUNIT  

  INTEGER, PARAMETER :: MAXGS = 32

10 IF (IL .GE. IH) GO TO 80
20 NSEGS = (IH + IL) / 2
  IF (NSEGS .GT. MAXSGS) THEN
     WRITE (IOUNIT),MAXSGS
  ENDIF
80 NSEGS = NSEGS - 1
90 IF (IH - IL .GE. 11) GO TO 20
110 IF (IL .EQ. IH) GO TO 80
END SUBROUTINE IVSORT