view gcc/testsuite/gfortran.dg/pr91553.f90 @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 1830386684a0
children
line wrap: on
line source

! { dg-do run }
! Code contributed by Gerhard Steinmetz
program p
   complex z(1)
   z = (1.0, 2.0) * [real :: (3.0 + 4.0)]
   if (real(z(1)) /= 7.) stop 1
   if (aimag(z(1)) /= 14.) stop 2
end