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
2009-10-05 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
arithmetic_overflow_1.f90
blob
b19844f93fdea709d1e44cb4e91f3e4e803b6f78
1
! { dg-do compile }
2
! Fixes PR37787 where the arithmetic overflow was not detected and an ICE ensued.
3
!
4
! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
5
!
6
program
bug
7
implicit none
8
integer
(
1
) ::
a
(
2
) = (/
Z
'FF'
,
Z
'FF'
/)
! { dg-error "Arithmetic overflow" }
9
print
*,
a
10
end program
bug