2 ! { dg-options "-fdump-tree-original" }
3 ! Tests the fix for PR 30872, in which the array element references bo(1,1) etc.
4 ! would be wrong for rank > 1.
6 ! Contributed by Joost VandeVondele <jv244@cam.ac.uk>
8 INTEGER, PARAMETER, DIMENSION(2,3) :: bo
= &
9 RESHAPE((/-1,1,-2,2,-3,3/),(/2,3/))
10 REAL(kind
=8), DIMENSION( &
13 bo(1,3):bo(2,3)) :: out_val
16 ! Scan for the 105 in the declaration real8 out_val[105];
17 ! { dg-final { scan-tree-dump-times "105" 1 "original" } }