5 ! Contributed by Alexander Vogt
8 use, intrinsic :: ISO_Fortran_env
10 character(len
=20) :: s_read
, s_write
, s_readwrite
12 inquire(unit
=input_unit
, read=s_read
, write=s_write
, &
13 readwrite
=s_readwrite
)
14 if (s_read
/= "YES" .or
. s_write
/= "NO" .or
. s_readwrite
/="NO") then
18 inquire(unit
=output_unit
, read=s_read
, write=s_write
, &
19 readwrite
=s_readwrite
)
20 if (s_read
/= "NO" .or
. s_write
/= "YES" .or
. s_readwrite
/="NO") then
24 inquire(unit
=error_unit
, read=s_read
, write=s_write
, &
25 readwrite
=s_readwrite
)
26 if (s_read
/= "NO" .or
. s_write
/= "YES" .or
. s_readwrite
/="NO") then
29 end program test_inquire