summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.fortran-torture/execute/inquire_3.f90
blob: 29d25812ab2ddd185fe26c54e398f3bb3df180f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
! pr14836
       OPEN(UNIT=9, ACCESS='DIRECT', RECL=80, FORM='UNFORMATTED')
       INQUIRE(UNIT=9,NEXTREC=NREC)
       WRITE(UNIT=9,REC=5) 1
       INQUIRE(UNIT=9,NEXTREC=NREC)
!      PRINT*,NREC
       IF (NREC.NE.6) CALL ABORT
       READ(UNIT=9,REC=1) MVI
       INQUIRE(UNIT=9,NEXTREC=NREC)
       IF (NREC.NE.2) CALL ABORT
!      PRINT*,NREC
       CLOSE(UNIT=9,STATUS='DELETE')
       END