blob: 62f1af17444f563d7830cf8adcf1580117fd5ed3 (
plain)
1
2
3
4
5
6
7
8
9
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" }
|