1 ! { dg-do run { target fd_truncate } }
2 ! { dg-options "-std=gnu" }
3 ! Test case prepared by Jerry DeLisle <jvdelisle@gcc.gnu.org>
11 open(10, file='mydata_f2003_io_1', asynchronous="yes", blank="null")
13 write(10,'(10f8.3)', asynchronous="yes", decimal="comma", id=j) a
15 read(10,'(10f8.3)', asynchronous="yes", decimal="comma", blank="zero") b
16 if (any(b.ne.23.45)) STOP 1
19 write(msg, *, decimal="comma") c
20 if (msg(1:7).ne." 3,14") STOP 2
24 write(10,'(10f8.3)', asynchronous="yes", decimal="point") a
26 read(10,'(10f8.3)', asynchronous="yes", decimal="point") b
27 if (any(b.ne.23.45)) STOP 3
29 wait(unit=10, err=25, iostat=istat, iomsg=msg, end=35, id=j)
31 ! do some stuff with a
36 close(10, status="delete")