repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update concepts branch to revision 131834
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
bounds_check_fail_1.f90
blob
8617456f1e0355ea7b6e0476e654ec79885b18e2
1
! { dg-do run }
2
! { dg-options "-fbounds-check" }
3
! { dg-shouldfail "foo" }
4
integer
x
(
1
)
5
x
(
2
) =
x
(
1
)
! { dg-warning "out of bounds" }
6
end
7
! { dg-output "out of bounds for array 'x', upper bound of dimension 1 exceeded." }