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