2 ! PR30145 write statement fails to ignore zero-sized array
3 ! Test case from PR, submitted by Jerry DeLisle <jvdelisle@gcc.gnu.org>
6 character(20) :: msg
= ""
7 integer :: itemp(10) = 0
10 write(msg
,*) 'itemp(6:0) = ',itemp(6:0),'a'
11 if (msg
/= " itemp(6:0) = a") call abort()
12 !This did not work before patch, segfaulted
14 write(msg
,*) 'itemp(ics:0) = ',itemp(ics
:0),'a'
15 if (msg
/= " itemp(ics:0) = a") call abort()