2 ! Program to test for proper EOF errors when reading past the end of a file.
3 ! We used to get this wrong when a formatted read followed a list formatted
8 open (unit
=11, status
="SCRATCH")
9 write (11, '(a)') "Hello"
12 if (s
.ne
. "Hello") STOP 1
13 read(11, '(a5)', end=10) s