PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / gfortran.dg / initialization_22.f90
blob4c8bba652a6d9455a4e1ed07d1239ad3abbb20d3
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) /))) STOP 1
10 end