PR fortran/30200
* gfortran.dg/write_fmt_trim.f90: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119941
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
--- /dev/null
+! { 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" }
+