2 ! PR 20661: Handle non-advancing I/O with iostat
3 ! Test case by Walt Brainerd, The Fortran Company
8 character(len
=*), parameter :: f
="(a)"
9 open(11,status
="scratch", iostat
=k
)
10 if (k
/= 0) call abort
13 read(11, f
, advance
="no", iostat
=k
) c
14 if (k
/= 0) call abort
15 read(11, f
, advance
="no", iostat
=k
) c
16 if (k
>= 0) call abort
17 read(11, f
, advance
="no", iostat
=k2
) c
18 if (k2
>= 0 .or
. k
== k2
) call abort