PR libfortran/34676
* gfortran.dg/list_read_8.f90: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131338
138bc75d-0d04-0410-961f-
82ee72b054a4
+2008-01-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+
+ PR libfortran/34676
+ * gfortran.dg/list_read_8.f90: New test.
+
2008-01-04 Richard Guenther <rguenther@suse.de>
PR middle-end/34029
--- /dev/null
+! { dg-do run }
+! PR34676 IO error delayed
+! Test case from PR modified by <jvdelisle@gcc.gnu.org>
+implicit none
+integer::i,badness
+character::c
+open(unit=10,status="scratch")
+write(10,'(a)') '1'
+write(10,'(a)') '2'
+write(10,'(a)') '3'
+rewind(10)
+do i=1,10
+ read(10,*,iostat=badness)
+ if (badness/=0) exit
+enddo
+if (i /= 4) call abort
+end