2 ! { dg-options "-fipa-pta -fno-tree-ccp -fno-tree-forwprop -g" }
6 call test ((/ 3, 4, 5 /), f ((/ 3, 4, 5 /)))
8 subroutine test (expected
, x
)
9 integer, dimension (:,:,:) :: x
10 integer, dimension (3) :: expected
11 integer :: i
, i1
, i2
, i3
13 if (size (x
, i
) .ne
. expected (i
)) call abort
15 do i1
= 1, expected (1)
16 do i2
= 1, expected (2)
17 do i3
= 1, expected (3)
18 if (x (i1
, i2
, i3
) .ne
. i1
+ i2
* 10 + i3
* 100) call abort
25 integer, dimension (3) :: x
26 integer, dimension (x(1), x(2), x(3)) :: f
31 f (i1
, i2
, i3
) = i1
+ i2
* 10 + i3
* 100