view gcc/testsuite/gfortran.dg/read_repeat_2.f90 @ 118:fd00160c1b76

ifdef TARGET_64BIT
author mir3636
date Tue, 27 Feb 2018 15:01:35 +0900
parents 04ced10e8804
children 84e7813d76e9
line wrap: on
line source

! { dg-do run }
!
! PR fortran/56810
!
! Contributed by Jonathan Hogg
!
program test
   implicit none

   integer :: i
   complex :: a(4)

   open (99, status='scratch')
   write (99, *) '4*(1.0,2.0)'
   rewind (99)
   read (99,*) a(:)
   close (99)
   if (any (a /= cmplx (1.0,2.0))) call abort()
end program test