1 ! Program to test the upper and lower bound intrinsics
4 real, dimension(:, :), allocatable :: a
5 integer, dimension(5) :: j
13 if (j(3) .ne. 8) call abort
14 if (j(4) .ne. 7) call abort
16 ! With two parameters, assigning to an array
18 if ((j(1) .ne. 3) .or. (j(5) .ne. 3)) call abort
20 ! With a variable second parameter
23 if (i .ne. 6) call abort
28 real, dimension (1:, 1:) :: a
32 if ((ubound(a, 1) .ne. 6) .or. (ubound(a, i) .ne. 2)) call abort