PR rtl-optimization/82913
[official-gcc.git] / gcc / testsuite / gfortran.fortran-torture / execute / nestcons.f90
blobd2d54562503bdd1b2858e228bedd10dfbca07912
1 ! Program to test array expressions in array constructors.
2 program nestcons
3 implicit none
4 integer, parameter :: w1(3)= (/ 5, 6, 7/)
5 integer, dimension(6) :: w2
7 w2 = (/ 1, 2, w1(3:1:-1), 3 /)
8 if (any (w2 .ne. (/ 1, 2, 7, 6, 5, 3/))) call abort
9 end