| 1 |
! { dg-do run } |
| 2 |
! { dg-options "-std=gnu" } |
| 3 |
character(25) :: sround, ssign, sasynchronous, sdecimal, sencoding |
| 4 |
integer :: vsize, vid |
| 5 |
logical :: vpending |
| 6 |
|
| 7 |
open(10, file='mydata_f2003_inquire_1', asynchronous="yes", blank="null", & |
| 8 |
& decimal="comma", encoding="utf-8", sign="plus") |
| 9 |
|
| 10 |
write (10,*, asynchronous="yes", id=vid) 'asdf' |
| 11 |
wait (10) |
| 12 |
|
| 13 |
inquire(unit=10, round=sround, sign=ssign, size=vsize, id=vid, & |
| 14 |
& pending=vpending, asynchronous=sasynchronous, decimal=sdecimal, & |
| 15 |
& encoding=sencoding) |
| 16 |
if (ssign.ne."PLUS") STOP 1 |
| 17 |
if (sasynchronous.ne."YES") STOP 2 |
| 18 |
if (sdecimal.ne."COMMA") STOP 3 |
| 19 |
if (sencoding.ne."UTF-8") STOP 4 |
| 20 |
if (vpending) STOP 5 |
| 21 |
|
| 22 |
close(10, status="delete") |
| 23 |
end |