2 ! PR25828 Stream IO test 8
3 ! Contributed by Jerry DeLisle <jvdelisle@verizon.net>.
12 OPEN(UNIT
=11, ACCESS
="stream")
13 inquire(unit
=11, pos
=mypos
)
14 if (mypos
.ne
.1) STOP 1
16 inquire(unit
=11, pos
=mypos
)
17 if (mypos
.ne
.6) STOP 2
19 inquire(unit
=11, pos
=mypos
)
20 if (mypos
.ne
.12) STOP 3
22 inquire(unit
=11, pos
=mypos
)
23 if (mypos
.ne
.16) STOP 4
26 inquire (11, pos
=mypos
)
28 if (abs(r
-12.25d0)>1e-10) STOP 5
29 inquire(unit
=11, pos
=mypos
)
30 inquire(unit
=11, access
=mystring
)
31 if (mypos
.ne
.24) STOP 6
32 if (mystring
.ne
."STREAM") STOP 7
33 CLOSE(UNIT
=11, status
="delete")
34 END PROGRAM stream_io_8