aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/bounds_check_fail_1.f90
blob: 938d19a6409532b2d9eb110c345310935354e533 (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.*at line 5" }