Commit dae24534 by Bud Davis Committed by Bud Davis

re PR libfortran/19313 (inquire(pad=) not implemented)

2005-01-22  Bud Davis  <bdavis9659@comcast.net>

        PR fortran/19313
        * trans-io.c (gfc_trans_inquire): Added code to support
        pad.

        PR fortran/19313
        * gfortan.dg/inquire_6.f90: New test.

From-SVN: r94110
parent a62a0172
2005-01-22 Bud Davis <bdavis9659@comcast.net>
PR fortran/19313
* trans-io.c (gfc_trans_inquire): Added code to support
pad.
2005-01-22 Steven G. Kargl <kargls@comcast.net> 2005-01-22 Steven G. Kargl <kargls@comcast.net>
* intrinsic.c (make_alias): Add standard argument. * intrinsic.c (make_alias): Add standard argument.
......
...@@ -798,6 +798,10 @@ gfc_trans_inquire (gfc_code * code) ...@@ -798,6 +798,10 @@ gfc_trans_inquire (gfc_code * code)
set_string (&block, &post_block, ioparm_delim, ioparm_delim_len, set_string (&block, &post_block, ioparm_delim, ioparm_delim_len,
p->delim); p->delim);
if (p->pad)
set_string (&block, &post_block, ioparm_pad, ioparm_pad_len,
p->pad);
if (p->err) if (p->err)
set_flag (&block, ioparm_err); set_flag (&block, ioparm_err);
......
2005-01-23 Bud Davis <bdavis9659@comcast.net>
PR fortran/19313
* gfortan.dg/inquire_6.f90: New test.
2005-01-22 Thomas Koenig <Thomas.Koenig@online.de> 2005-01-22 Thomas Koenig <Thomas.Koenig@online.de>
PR libfortran/19451 PR libfortran/19451
......
! { dg-do run }
!pr19313 - inquire(..pad=..)
implicit none
! logical debug
! data debug /.TRUE./
character*20 chr
chr=''
! not connected
inquire(7,pad=chr)
! if (debug) print*,chr
if (chr.ne.'UNDEFINED') call abort
chr=''
! not a formatted file
open(7,FORM='UNFORMATTED',STATUS='SCRATCH')
inquire(7,pad=chr)
! if (debug) print*,chr
if (chr.ne.'UNDEFINED') call abort
chr=''
! yes
open(8,STATUS='SCRATCH',PAD='YES')
inquire(8,pad=chr)
! if (debug) print*,chr
if (chr.ne.'YES') call abort
chr=''
! no
open(9,STATUS='SCRATCH',PAD='NO')
inquire(9,pad=chr)
! if (debug) print*,chr
if (chr.ne.'NO') call abort
chr=''
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment