2014-07-12 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / read_repeat_2.f90
blob4b8659e5f344736556a25b449c8e6596c412f10c
1 ! { dg-do run }
3 ! PR fortran/56810
5 ! Contributed by Jonathan Hogg
7 program test
8 implicit none
10 integer :: i
11 complex :: a(4)
13 open (99, status='scratch')
14 write (99, *) '4*(1.0,2.0)'
15 rewind (99)
16 read (99,*) a(:)
17 close (99)
18 if (any (a /= cmplx (1.0,2.0))) call abort()
19 end program test