2 ! { dg-options "-fbounds-check" }
3 ! { dg-shouldfail "Array bound checking" }
6 ! Don't check upper bound of assumed-size array
11 integer, parameter :: maxss
=7,maxc
=8
15 subroutine findphase(jp
)
16 integer, intent(out
) :: jp(2,*)
18 jp(2,0:4)=0 ! { dg-warning "out of bounds" }
19 jp(3,1:4)=0 ! { dg-warning "out of bounds" }
23 ! { dg-output "At line 18 of file .*" }
24 ! { dg-output "Array reference out of bounds, lower bound of dimension 2 of array 'jp' exceeded .0 < 1." }