PR target/83368
[official-gcc.git] / gcc / testsuite / gfortran.dg / arithmetic_overflow_1.f90
blobb19844f93fdea709d1e44cb4e91f3e4e803b6f78
1 ! { dg-do compile }
2 ! Fixes PR37787 where the arithmetic overflow was not detected and an ICE ensued.
4 ! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
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