From e2d393e5410160e58a0ff58a66489004bfb30ece Mon Sep 17 00:00:00 2001 From: Jerry DeLisle Date: Wed, 18 Jan 2006 01:06:08 +0000 Subject: [PATCH] re PR libfortran/25631 (tl format specifier not working correctly) 2006-01-17 Jerry DeLisle PR fortran/25631 * gfortran.dg/fmt_tl.f: New test. From-SVN: r109860 --- gcc/testsuite/ChangeLog | 21 +++++++++++++-------- gcc/testsuite/gfortran.dg/fmt_tl.f | 25 +++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 8 deletions(-) create mode 100644 gcc/testsuite/gfortran.dg/fmt_tl.f diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 150f899b193..e998aa502c1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-01-17 Jerry DeLisle + + PR fortran/25631 + * gfortran.dg/fmt_tl.f: New test. + 2006-01-17 Eric Christopher * g++.old-deja/g++.warn/impint.C: Add -Wconversion. @@ -140,7 +145,7 @@ * gcc.dg/tree-ssa/alias-11.c: Likewise. * gcc.dg/tree-ssa/alias-12.c: Likewise. -2005-01-14 Zdenek Dvorak +2006-01-14 Zdenek Dvorak * gcc.dg/tree-ssa/pr19210-1.c: Update outcome. Add new test loop. * gcc.dg/tree-ssa/pr19210-2.c: Ditto. @@ -295,7 +300,7 @@ * gcc.dg/tree-ssa/recip-2.c, gcc.dg/tree-ssa/pr23234.c: Provide three divisions in order to do the optimization. -2005-01-11 Zdenek Dvorak +2006-01-11 Zdenek Dvorak PR c++/25632 * g++.dg/other/pr25632.C: New test. @@ -347,16 +352,16 @@ * gfortran.dg/ichar_2.f90: New test. -2005-01-08 Erik Edelmann +2006-01-08 Erik Edelmann PR fortran/25093 * gfortran.dg/private_type_4.f90: New. -2005-01-07 Richard Guenther +2006-01-07 Richard Guenther * gcc.dg/tree-ssa/loop-15.c: Use optimized dump. -2005-01-07 Tobias Schl"uter +2006-01-07 Tobias Schl"uter * gfortran.dg/func_decl_1.f90: New. * gfortran.dg/array_alloc_1.f90: Fix wrong function declaration. @@ -384,17 +389,17 @@ * gfortran.dg/assumed_size_refs_2.f90: New test. * gfortran.dg/initialization_1.f90: Change warning message. -2005-01-06 Zdenek Dvorak +2006-01-06 Zdenek Dvorak * gcc.dg/tree-ssa/loop-15.c: New test. -2005-01-05 Jerry DeLisle +2006-01-05 Jerry DeLisle PR fortran/25598 * gfortran.dg/backspace_3.f: New test. * gfortran.dg/backspace_4.f: New test. -2005-01-05 Jerry DeLisle +2006-01-05 Jerry DeLisle PR fortran/24268 * gfortran.dg/fmt_white.f: Update test. diff --git a/gcc/testsuite/gfortran.dg/fmt_tl.f b/gcc/testsuite/gfortran.dg/fmt_tl.f new file mode 100644 index 00000000000..d79146ff02f --- /dev/null +++ b/gcc/testsuite/gfortran.dg/fmt_tl.f @@ -0,0 +1,25 @@ +! { dg-do run } +! PR25631 Check that TL editing works for special case of no bytes written yet. +! Contributed by Jerry DeLisle + real x + character*15 line + x = 12.34 + write(line,10) x + 10 format(tr2,tl2,g11.4) + if (line.ne.' 12.34 ') call abort() + write(line,20) x + 20 format(tr5,tl3,g11.4) + if (line.ne.' 12.34 ') call abort() + write(line,30) x + 30 format(tr5,tl3,tl3,g11.4) + if (line.ne.' 12.34 ') call abort() + write(line,40) x + 40 format(tr25,tl35,f11.4) + if (line.ne.' 12.3400 ') call abort() + write(line,50) x + 50 format(tl5,tr3,f11.4) + if (line.ne.' 12.3400 ') call abort() + write(line,60) x + 60 format(t5,tl3,f11.4) + if (line.ne.' 12.3400 ') call abort() + end