2014-07-12 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / internal_readwrite_3.f90
blob279fac5a6d8429c6ab32e93bedccd60e02e839df
1 ! { dg-do run }
2 ! PR 52724 - this used to generate a "Bad integer" error.
3 program main
4 implicit none
5 integer :: i
6 character(len=100,kind=4) :: buffer, a
7 buffer = 4_"123"
8 read(buffer,*) i
9 write (a,'(I3)') i
10 if (a /= 4_"123") call abort
11 end program main