gcc/testsuite/gfortran.dg/initialization_22.f90
raw| 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. |
| 4 | ! |
| 5 | ! Contributed by Richard Guenther <[email protected]> |
| 6 | ! |
| 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 |