2 ! { dg-require-effective-target fortran_large_int }
6 integer,parameter :: k
= selected_int_kind (range (0_8) + 1)
8 integer(kind
=k
), dimension(10) :: i_k
9 integer(kind
=k
), dimension (2, 3) :: a_k
10 integer(kind
=k
), dimension (2, 2, 3) :: b_k
11 character (len
=200) line1
, line2
, line3
13 a_k
= reshape ((/1_k
, 2_k
, 3_k
, 4_k
, 5_k
, 6_k
/), (/2, 3/))
14 b_k
= spread (a_k
, 1, 2)
15 if (any (b_k
.ne
. reshape ((/1_k
, 1_k
, 2_k
, 2_k
, 3_k
, 3_k
, 4_k
, 4_k
, 5_k
, 5_k
, 6_k
, 6_k
/), &
19 write(line1
, 9000) b_k
21 write(line2
, 9000) spread (a_k
, 1, 2)
22 if (line1
/= line2
) call abort
24 write(line3
, 9000) spread (a_k
, 1, 2) + 0_k
25 if (line1
/= line3
) call abort
26 i_k
= spread(1_k
,1,10)
27 if (any(i_k
/= 1_k
)) call abort