7 subroutine build (order
)
11 call test (1, order
, 3, (/ (i
, i
= 1, order
, 3) /))
12 call test (order
, 1, -3, (/ (i
, i
= order
, 1, -3) /))
15 call test (order
+ j
, order
, 5, (/ (i
, i
= order
+ j
, order
, 5) /))
16 call test (order
+ j
, order
, -5, (/ (i
, i
= order
+ j
, order
, -5) /))
21 subroutine test (from
, to, step
, values
)
22 integer, dimension (:) :: values
23 integer :: from
, to, step
, last
, i
28 if (values (last
) .ne
. i
) call abort
30 if (size (values
, dim
= 1) .ne
. last
) call abort