2 ! PR fortran/49588 - vector sections in data statements
6 integer :: a(8), b(3,2), i
10 data a([(6+2*i
,i
=1,1)]) /1*5/
11 data b( 1 ,[1,2]) /11,12/
12 data b([2,3],[2,1]) /22,32,21,31/
18 integer :: a(8), b(3,2), i
, j
22 ! print *, a - [1,2,1,3,1,2,1,5]
23 ! print *, ((b(i,j)-(10*i+j),i=1,3),j=1,2)
24 if (.not
. all (a
== [1,2,1,3,1,2,1,5])) stop 1
25 if (.not
. all (b
== reshape ([((10*i
+j
,i
=1,3),j
=1,2)], shape (b
)))) stop 2