blob: 8617456f1e0355ea7b6e0476e654ec79885b18e2 (
plain)
1
2
3
4
5
6
7
|
! { dg-do run }
! { dg-options "-fbounds-check" }
! { dg-shouldfail "foo" }
integer x(1)
x(2) = x(1) ! { dg-warning "out of bounds" }
end
! { dg-output "out of bounds for array 'x', upper bound of dimension 1 exceeded." }
|