view gcc/testsuite/gfortran.dg/pr91552.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 }
! PR fortran/91552
! Code contributed by Gerhard Steinmetz.
program p
   real :: y(3), z(4)
   y = 2.0 * [real :: 1, [2], 3]
   z = 2.0 * [real :: 1, [2, [4]], 3]
   if (any(y /= [2., 4., 6.])) stop 1
   if (any(z /= [2., 4., 8., 6.])) stop 2
end