summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/f2003_inquire_1.f03
blob: 957cdae52767318215f7b5807e3b564cd259c9ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
! { dg-do run }
! { dg-options "-std=gnu" }
character(25) :: sround, ssign, sasynchronous, sdecimal, sencoding
integer :: vsize, vid
logical :: vpending

open(10, file='mydata_f2003_inquire_1', asynchronous="yes", blank="null", &
& decimal="comma", encoding="utf-8", sign="plus")

write (10,*, asynchronous="yes", id=vid) 'asdf'
wait (10)

inquire(unit=10, round=sround, sign=ssign, size=vsize, id=vid, &
& pending=vpending, asynchronous=sasynchronous, decimal=sdecimal, &
& encoding=sencoding)
if (ssign.ne."PLUS") STOP 1
if (sasynchronous.ne."YES") STOP 2
if (sdecimal.ne."COMMA") STOP 3
if (sencoding.ne."UTF-8") STOP 4
if (vpending) STOP 5

close(10, status="delete")
end