Plugins: Add label-text.h to CPPLIB_H so it will be installed [PR115288]
[official-gcc.git] / gcc / testsuite / gfortran.dg / arrayio_10.f90
blob22139a2cfabd9ab3466298604d43a06f07c2b28d
1 ! { dg-do run }
2 ! PR29563 Internal read loses data.
3 ! Test case submitted by Jerry DeLisle <jvdelisle@gcc.gnu.org>
4 ! Without patch, values get muddled.
5 program pr29563
6 character(len=4), dimension(3)::arraydata = (/'1123',' 456','789 '/)
7 real(kind=8), dimension(3) :: tmp
8 read(arraydata,*,iostat=iostat)tmp
9 if (tmp(1).ne.1123.0) STOP 1
10 if (tmp(2).ne.456.0) STOP 2
11 if (tmp(3).ne.789.0) STOP 3
12 end program pr29563