blob: 938d19a6409532b2d9eb110c345310935354e533 [file] [log] [blame]
! { 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.*at line 5" }