Debian Codegraph @

gcc/testsuite/gfortran.dg/list_read_8.f90

raw
1 ! { dg-do run }
2 ! PR34676 IO error delayed
3 ! Test case from PR modified by <[email protected]>
4 implicit none
5 integer::i,badness
6 character::c
7 open(unit=10,status="scratch")
8 write(10,'(a)') '1'
9 write(10,'(a)') '2'
10 write(10,'(a)') '3'
11 rewind(10)
12 do i=1,10
13 read(10,*,iostat=badness)
14 if (badness/=0) exit
15 enddo
16 if (i /= 4) STOP 1
17 end