2 ! PR 95191 - this used to hang.
3 ! Original test case by Bill Long.
9 character (len
=100) :: iomsg
13 open (unit
=10, file
='test.dat', form
='unformatted', &
15 write (unit
=10, asynchronous
='yes', id
=my_id
) a
17 wait (unit
=10, id
=bad_id
, iostat
=iostat
, iomsg
=iomsg
)
18 if (iostat
== 0 .or
. iomsg
/= "Bad ID in WAIT statement") stop 1
19 close (unit
=10, status
='delete')