diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 69358cb1860..018fe9e9568 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-05-24 Jerry DeLisle + + PR libfortran/61173 + gfortran.dg/arrayio_14.f90: New test. + 2014-05-24 Andreas Schwab * gcc.c-torture/execute/bswap-2.c (main): Handle more bitfield diff --git a/gcc/testsuite/gfortran.dg/arrayio_14.f90 b/gcc/testsuite/gfortran.dg/arrayio_14.f90 new file mode 100644 index 00000000000..3d878c75644 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/arrayio_14.f90 @@ -0,0 +1,18 @@ +! { dg-do run } +! PR61173.f90 Bogus END condition +module bd + character(len=25, kind=1), dimension(:), allocatable, save :: source + contains + subroutine init_data + allocate(source(2)) + source=[" 1 1 1 ", " 4 4 4 "] + end subroutine init_data +end module bd +program read_internal + use bd + integer :: x(6),i + + call init_data + read(source,*) (x(i), i=1,6) + if (any(x/=[1,1,1,4,4,4])) call abort +end program read_internal