2 ! PR 38135 - pad to RESHAPE didn't work correctly when SOURCE
7 integer, parameter :: N
= 3
8 integer(kind
=1) :: A1(N
,N
)
9 integer(kind
=1) :: b1(n
+1)
10 integer(kind
=4) :: A4(n
,n
)
11 integer(kind
=4) :: b4(n
+1)
12 character(len
=9) :: line
16 A1(1:N
,1:N
)=reshape(A1(1:0,1),(/N
,N
/),b1
)
17 write(unit
=line
,fmt
='(100i1)') A1
18 if (line
.ne
. "122212221") call abort
22 a4
= reshape(a4(:0,1),(/n
,n
/),b4
)
23 write(unit
=line
,fmt
='(100i1)') a4
24 if (line
.ne
. "344434443") call abort