gcc/testsuite/gfortran.dg/arithmetic_overflow_1.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! Fixes PR37787 where the arithmetic overflow was not detected and an ICE ensued. |
| 3 | ! |
| 4 | ! Contributed by Tobias Burnus <[email protected]> |
| 5 | ! |
| 6 | ! In F2008 and F2018, overflow cannot happen, but a BOZ cannot appear |
| 7 | ! in an array constructor. |
| 8 | ! |
| 9 | program bug |
| 10 | implicit none |
| 11 | integer(1) :: a(2) = (/ Z'FF', Z'FF' /) ! { dg-error "cannot appear in" } |
| 12 | end program bug |