2 ! { dg-options "-fbounds-check" }
3 ! Check that empty arrays are handled correctly in
6 character(len
=50) :: line
7 character(len
=3), dimension(2,2) :: a
, b
10 read (line
,'(2I2)') n1
, n2
11 call foo(a
, b
, n1
, n2
)
13 write (line
,'(4A)') eoshift(a
, 3)
14 write (line
,'(4A)') cshift(a
, 3)
15 write (line
,'(4A)') cshift(a(:,1:n1
), 3)
16 write (line
,'(4A)') eoshift(a(1:n2
,:), 3)
19 subroutine foo(a
, b
, n1
, n2
)
20 character(len
=3), dimension(2, n1
) :: a
21 character(len
=3), dimension(n2
, 2) :: b