blob: 46716a681fc7746dcaaec6bac674301d12e473a2 [file] [log] [blame]
! { dg-do run }
! { dg-options "-Wall -pedantic" }
! Before a bogus warning was printed
!
! PR fortran/39811
!
implicit none
character(len=70) :: str
write(str,'(a)') 'Print rather a lot of ampersands &&&&&
&&&&&
&&&&&'
if (len(trim(str)) /= 44 &
.or. str /= 'Print rather a lot of ampersands &&&&&&&&&&&') &
STOP 1
end