rt_gccstream/gcc/testsuite/gfortran.dg/int_conv_2.f90

9 lines
212 B
Fortran

! { dg-do compile }
! { dg-skip-if "NaN not supported" { spu-*-* } { "*" } { "" } }
! PR fortran/37930
program test
implicit none
integer i
i = transfer(-1,1.0) ! { dg-error "Conversion" }
end program test