coarray_41.f90: Add "-latomic" option if libatomic_available.
[official-gcc.git] / gcc / testsuite / gfortran.dg / inquire_17.f90
blob8a722f0e73329514d10e1815011bab33baa9c0f7
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) call abort
9 close(10)
10 end