diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2005-07-14 06:21:59 +0000 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2005-07-14 06:21:59 +0000 |
commit | be0cc7e21cee56062492d6e11014b827ab39c342 (patch) | |
tree | 3a6abdf272c0e410094c15917247aec5ab5c7909 /gcc/testsuite | |
parent | 93e261acea9db4975e505d7cbdf42572d3c8557d (diff) | |
download | gcc-be0cc7e21cee56062492d6e11014b827ab39c342.zip gcc-be0cc7e21cee56062492d6e11014b827ab39c342.tar.gz gcc-be0cc7e21cee56062492d6e11014b827ab39c342.tar.bz2 |
[multiple changes]
2005-07-12 Paul Thomas <pault@gcc.gnu.org>
PR libfortran/16435
* transfer.c (formatted_transfer): Correct the problems
with X- and T-editting that caused TLs followed by TRs
to overwrite data, which caused NIST FM908.FOR to fail
on many tests.
(data_transfer_init): Zero X- and T-editting counters at
the start of formatted IO.
* write.c (write_x): Write specified number of skips with
specified number of spaces at the end.
2005-07-12 Paul Thomas <pault@gcc.gnu.org>
PR libfortran/16435
* gfortran.dg/tl_editting.f90: New.
* gfortran.dg/g77/f77-edit-x-out.f: Remove XFAIL.
From-SVN: r102008
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gfortran.dg/g77/f77-edit-x-out.f | 2 | ||||
-rw-r--r-- | gcc/testsuite/gfortran.dg/tl_editing.f90 | 13 |
3 files changed, 20 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1c94063..b3585c7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2005-07-12 Paul Thomas <pault@gcc.gnu.org> + + PR libfortran/16435 + * gfortran.dg/tl_editting.f90: New. + * gfortran.dg/g77/f77-edit-x-out.f: Remove XFAIL. + 2005-07-14 Steven G. Kargl <kargls@comcast.net> * gfortran.dg/char_array_constructor.f90: New test. diff --git a/gcc/testsuite/gfortran.dg/g77/f77-edit-x-out.f b/gcc/testsuite/gfortran.dg/g77/f77-edit-x-out.f index 400b85b6..9d19633 100644 --- a/gcc/testsuite/gfortran.dg/g77/f77-edit-x-out.f +++ b/gcc/testsuite/gfortran.dg/g77/f77-edit-x-out.f @@ -8,5 +8,5 @@ C ( dg-output "^" } write(*,'(I1,1X,I1,2X,I1)') 1,2,3 ! { dg-output "1 2 3(\n|\r\n|\r)" } C Section 13.5.3 explains why there are no trailing blanks write(*,'(I1,1X,I1,2X,I1,3X)') 1,2,3 ! { dg-output "1 2 3(\n|\r\n|\r)" } -C { dg-output "\$" {xfail *-*-*} } gfortran PR 16435 +C { dg-output "\$" } end diff --git a/gcc/testsuite/gfortran.dg/tl_editing.f90 b/gcc/testsuite/gfortran.dg/tl_editing.f90 new file mode 100644 index 0000000..3a313cd --- /dev/null +++ b/gcc/testsuite/gfortran.dg/tl_editing.f90 @@ -0,0 +1,13 @@ +! { dg-do run } +! Test of fix to bug triggered by NIST fm908.for. +! Left tabbing, followed by X or T-tabbing to the right would +! cause spaces to be overwritten on output data. +! Contributed by Paul Thomas <pault@gcc.gnu.org> + program tl_editting + character*10 :: line + character*10 :: aline = "abcdefxyij" + character*2 :: bline = "gh" + character*10 :: cline = "abcdefghij" + write (line, '(a10,tl6,2x,a2)') aline, bline + if (line.ne.cline) call abort () + end program tl_editting
\ No newline at end of file |