[to-be-committed] [RISC-V] Use Zbkb for general 64 bit constants when profitable
[official-gcc.git] / gcc / testsuite / gfortran.dg / inquire_17.f90
blobce27078b1ab05e50aaba72ff9467e2dfe8be7c08
1 ! { dg-do run }
2 ! PR77707 formatted direct access: nextrec off by one
3 program directaccess_formatted
4 integer nextrec
5 open(10, status='scratch', form='formatted', access='direct', recl=10*4)
6 write(10,'(10i4)',rec=9) 1,2,3,4,5,6,7,8,9,10
7 inquire(unit=10,nextrec=nextrec)
8 if (nextrec.ne.10) STOP 1
9 close(10)
10 end