view gcc/testsuite/gfortran.dg/transfer_check_1.f90 @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { dg-do compile }
! { dg-options -Wsurprising }
! PR fortran/33037
!
print *, transfer('x', 0, 20) ! { dg-warning "has partly undefined result" }
print *, transfer(1_1, 0) ! { dg-warning "has partly undefined result" }
print *, transfer([1_2,2_2], 0)
print *, transfer([1_2,2_2], 0_8) ! { dg-warning "has partly undefined result" }
end