rt_gccstream/gcc/testsuite/gfortran.dg/eoshift.f90

7 lines
188 B
Fortran

! { dg-do run }
! PR 18958: We used to segfault for eoshifting off the end of an array.
program main
character(len=20) line
write (line,'(2I4)') eoshift((/1, 3/), 3)
end program main