3 INTEGER, PARAMETER :: n = 5
4 INTEGER, PARAMETER :: a1(n) = SPREAD(1, 1, n)
5 INTEGER, PARAMETER :: a2(n, 3) = SPREAD([1,2,3], DIM=1, NCOPIES=n)
6 INTEGER, PARAMETER :: a3(3, n) = SPREAD([1,2,3], DIM=2, NCOPIES=n)
8 IF (ANY(a1 /= [ 1, 1, 1, 1, 1 ])) STOP 1
10 IF (ANY(a2(:, 1) /= 1)) STOP 2
11 IF (ANY(a2(:, 2) /= 2)) STOP 3
12 IF (ANY(a2(:, 3) /= 3)) STOP 4
14 IF (ANY(a3(1, :) /= 1)) STOP 5
15 IF (ANY(a3(2, :) /= 2)) STOP 6
16 IF (ANY(a3(3, :) /= 3)) STOP 7