re PR fortran/77707 (formatted direct access: nextrec off by one)

2016-09-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/77707
	* gfortran.dg/inquire_17.f90: New test.

From-SVN: r240593
This commit is contained in:
Jerry DeLisle 2016-09-28 19:43:03 +00:00
parent b89f743da8
commit 0c1729748b
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2016-09-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/77707
* gfortran.dg/inquire_17.f90: New test.
2016-09-28 Jakub Jelinek <jakub@redhat.com>
PR c++/77467

View File

@ -0,0 +1,10 @@
! { dg-do run }
! PR77707 formatted direct access: nextrec off by one
program directaccess_formatted
integer nextrec
open(10, status='scratch', form='formatted', access='direct', recl=10*4)
write(10,'(10i4)',rec=9) 1,2,3,4,5,6,7,8,9,10
inquire(unit=10,nextrec=nextrec)
if (nextrec.ne.10) call abort
close(10)
end