1 ! PR 12840. Make sure that array constructors can be used to determine
2 ! the bounds of a scalarization loop.
8 subroutine build (order
)
11 call test (order
, (/ (i
* 2, i
= 1, order
) /))
12 call test (17, (/ (i
* 2, i
= 1, 17) /))
13 call test (5, (/ 2, 4, 6, 8, 10 /))
16 subroutine test (order
, values
)
17 integer, dimension (:) :: values
20 if (size (values
, dim
= 1) .ne
. order
) call abort
22 if (values (i
) .ne
. i
* 2) call abort