mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-22 03:30:29 +08:00
re PR libfortran/30200 ([4.1 only] write(*,myfmt="(1X,a,'xyz')") "A" prints Az' instead of Axyz)
2006-12-15 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/30200 * gfortran.dg/write_fmt_trim.f90: New test. From-SVN: r119941
This commit is contained in:
parent
9341698a40
commit
92efdb0750
@ -1,3 +1,8 @@
|
||||
2006-12-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||||
|
||||
PR fortran/30200
|
||||
* gfortran.dg/write_fmt_trim.f90: New test.
|
||||
|
||||
2006-12-14 Diego Novillo <dnovillo@redhat.com>
|
||||
|
||||
PR 30194
|
||||
|
10
gcc/testsuite/gfortran.dg/write_fmt_trim.f90
Normal file
10
gcc/testsuite/gfortran.dg/write_fmt_trim.f90
Normal file
@ -0,0 +1,10 @@
|
||||
! { dg-do run }
|
||||
! PR30200 write(*,myfmt="(1X,a,'xyz')") "A" prints Az' instead of Axyz
|
||||
! Test case from PR, submitted by <jvdelisle@gcc.gnu.org>
|
||||
program main
|
||||
character (len=20) format
|
||||
format = "(1X,a,'xyz')"
|
||||
write(*,fmt=trim(format)) "A" ! Problem arose when trim was included here
|
||||
end
|
||||
! { dg-output " Axyz" }
|
||||
|
Loading…
x
Reference in New Issue
Block a user