Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / gfortran.dg / transfer_check_1.f90
blob1a1f1a7e4c5a270ec76cbb95a77666e44986d8d3
1 ! { dg-do compile }
2 ! { dg-options -Wsurprising }
3 ! PR fortran/33037
5 print *, transfer('x', 0, 20) ! { dg-warning "has partly undefined result" }
6 print *, transfer(1_1, 0) ! { dg-warning "has partly undefined result" }
7 print *, transfer([1_2,2_2], 0)
8 print *, transfer([1_2,2_2], 0_8) ! { dg-warning "has partly undefined result" }
9 end