URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [transfer_null_1.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do compile }! Test fix for pr38763, where NULL was not being encoded.!! Contributed by Steve Kargl <kargl@gcc.gnu.org> from a! posting by James van Buskirk on clf.!program sizetestuse ISO_C_BINDINGimplicit noneinteger, parameter :: ik1 = selected_int_kind(2)TYPE vehicle_t1INTEGER(C_INT), DIMENSION(:), ALLOCATABLE :: sensorsEND TYPE vehicle_t1type(vehicle_t1) gfortran_bug_workaroundinteger ii = size(transfer(vehicle_t1(NULL()),[0_ik1]))print *, ii = size(transfer(vehicle_t1([i]),[0_ik1]))print *, iend program sizetest
