2 ! PR25307 Check handling of end-of-file conditions for list directed reads.
3 ! Prepared by Jerry DeLisle <jvdelisle@gcc.gnu.org>
5 character(len=10) :: str
6 character(len=10) :: a(5)
14 read( str, *, end=10 ) i,j
17 if (i.ne.123) call abort()
18 if (j.ne.0) call abort()
21 open(10, status="scratch")
24 read(10, *, end=20) i,j
27 if (i.ne.123) call abort()
28 if (j.ne.0) call abort()
29 ! Check internal array unit
33 read(a(1:5:2),*, end=30)i,j,k
36 if (i.ne.123) call abort()
37 if (j.ne.234) call abort()
38 if (k.ne.0) call abort()