mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-22 03:46:53 -05:00
re PR libfortran/30200 ([4.1 only] write(*,myfmt="(1X,a,'xyz')") "A" prints Az' instead of Axyz)
2006-12-18 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/30200 * gfortran.dg/write_fmt_trim.f90: New test. From-SVN: r120042
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2006-12-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||||
|
||||
PR fortran/30200
|
||||
* gfortran.dg/write_fmt_trim.f90: New test.
|
||||
|
||||
2006-12-18 Bill Wendling <wendling@apple.com>
|
||||
|
||||
* g++.old-deja/g++.mike/p11144.C: Renamed id to ID because
|
||||
|
||||
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" }
|
||||
|
||||
Reference in New Issue
Block a user