diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/arrayio_5.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/arrayio_5.f90 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/arrayio_5.f90 b/gcc/testsuite/gfortran.dg/arrayio_5.f90 new file mode 100644 index 000000000..cb062037a --- /dev/null +++ b/gcc/testsuite/gfortran.dg/arrayio_5.f90 @@ -0,0 +1,13 @@ +! { dg-do run } +! PR 21875 : Test formatted input/output to/from character arrays. +! This test checks the error checking for end of file condition. +! Contributed by Jerry DeLisle <jvdelisle@verizon.net>. +program arrayio_5 + implicit none + integer :: i,ierr + character(12) :: r(10) = '0123456789AB' + + write(r,'(i12)',iostat=ierr) 1,2,3,4,5,6,7,8,9,10,11 + if (ierr.ne.-1) call abort() + end program arrayio_5 + |