2 ! { dg-options "-std=legacy" }
4 ! this testcase derived from NIST test FM413.FOR
5 ! tests writing direct access files in ascending and descending
9 IMPLICIT CHARACTER*14 (C
)
10 IMPLICIT INTEGER(4) (I
)
11 DATA IPROG
, IFILE
, ITOTR
, IRLGN
, IRECN
, IEOF
,ICON21
, ICON22
, ICON31
, ICON32
, ICON33
, ICON34
, ICON55
, ICON56
/14*0/
12 OPEN (7, ACCESS
= 'DIRECT', RECL
= 80, STATUS
='REPLACE', FILE
="FOO" )
18 WRITE(7, REC
= IREC
) IPROG
, IFILE
, ITOTR
, IRLGN
, IRECN
, IEOF
,ICON21
, ICON22
, ICON31
, ICON32
, ICON33
, ICON34
, ICON55
, ICON56
25 WRITE(7, REC
= IREC
) IPROG
, IFILE
, ITOTR
, IRLGN
, IRECN
, IEOF
,ICON21
, ICON22
, ICON31
, ICON32
, ICON33
, ICON34
, ICON55
, ICON56
34 READ(7, REC
= IREC
) IPROG
, IFILE
, ITOTR
, IRLGN
, IRECN
, IEOF
,IVON21
, IVON22
, IVON31
, IVON32
, IVON33
, IVON34
, IVON55
, IVON56
35 IF (IRECN
.NE
. IRECCK
) CALL ABORT
43 READ(7, REC
= IREC
) IPROG
, IFILE
, ITOTR
, IRLGN
, IRECN
, IEOF
,IVON21
, IVON22
, IVON31
, IVON32
, IVON33
, IVON34
, IVON55
, IVON56
44 IF (IRECN
.NE
. IRECCK
) CALL ABORT
46 CLOSE(7, STATUS
='DELETE')