diff options
author | bdavis <bdavis@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-23 14:19:54 +0000 |
---|---|---|
committer | bdavis <bdavis@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-23 14:19:54 +0000 |
commit | 60065042c696a573e26af5d74fa64092f6145269 (patch) | |
tree | 5b51ce81a0c8bcd30342b0d9b40d0a20c93a9408 /gcc/testsuite/gfortran.dg | |
parent | 8e513eb8281762ee12e68cd5f43b848f05ae979f (diff) | |
download | gcc-60065042c696a573e26af5d74fa64092f6145269.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94110 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gfortran.dg')
-rw-r--r-- | gcc/testsuite/gfortran.dg/inquire_6.f90 | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/inquire_6.f90 b/gcc/testsuite/gfortran.dg/inquire_6.f90 new file mode 100644 index 00000000000..7575b6e67b3 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/inquire_6.f90 @@ -0,0 +1,31 @@ +! { 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 |