modula2: Simplify REAL/LONGREAL/SHORTREAL node creation.
[official-gcc.git] / gcc / testsuite / gfortran.dg / array_constructor_46.f90
blobf6511fcb7367b590814e68a6b4d9b5671129f776
1 ! { dg-do run }
2 ! { dg-options "-ffrontend-optimize -fdump-tree-original" }
3 ! Test that nested array constructors are optimized.
4 program main
5 implicit none
6 integer, parameter :: dp=selected_real_kind(15)
7 real(kind=dp), dimension(2,2) :: a
8 real(kind=dp) thirteen
10 data a /2._dp,3._dp,5._dp,7._dp/
11 thirteen = 13._dp
12 if (abs (product([[11._dp, thirteen], a]) - 30030._dp) > 1e-8) STOP 1
13 end program main
14 ! { dg-final { scan-tree-dump-times "while" 2 "original" } }