view gcc/testsuite/gfortran.dg/nan_4.f90 @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { dg-do compile }
! { dg-options "-std=gnu -fallow-invalid-boz" } 
! { dg-add-options ieee }
!
! PR fortran/34398.
!
! Check for invalid numbers in bit-wise BOZ transfers
!
program test
  implicit none
  real(4), parameter :: r0 = z'FFFFFFFF' ! { dg-warning "BOZ literal constant" }
  real(4) r
  data r/z'FFFFFFFF'/   ! { dg-warning "BOZ literal constant" }
  r = z'FFFFFFFF'       ! { dg-warning "BOZ literal constant" }
end program test