OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [write_zero_array.f90] - Rev 774

Go to most recent revision | Compare with Previous | Blame | View Log

! { dg-do run }
! PR30145 write statement fails to ignore zero-sized array
! Test case from PR, submitted by Jerry DeLisle  <jvdelisle@gcc.gnu.org>
program zeros
 implicit none
 character(20) :: msg = ""
 integer :: itemp(10) = 0
 integer :: ics
 !This was OK
 write(msg,*) 'itemp(6:0) = ',itemp(6:0),'a'
 if (msg /= " itemp(6:0) = a") call abort()
 !This did not work before patch, segfaulted
 ics=6
 write(msg,*) 'itemp(ics:0) = ',itemp(ics:0),'a'
 if (msg /= " itemp(ics:0) = a") call abort()
end program zeros

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.