fix pr/45972
[official-gcc.git] / gcc / testsuite / gfortran.dg / initialization_22.f90
blobf788109e66adb679aa437b6c7e53bd46d460214d
1 ! { dg-do run }
2 ! tests the fix for PR39292, where the intitialization expression
3 ! did not simplify and caused an ICE in gfc_conv_array_initializer.
5 ! Contributed by Richard Guenther <rguenth@gcc.gnu.org>
7 integer :: n
8 real, dimension(2) :: a = (/ ( (float(n))**(1.0), n=1,2) /)
9 if (any (a .ne. (/ ( (float(n))**(1.0), n=1,2) /))) call abort
10 end