OpenCores
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] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! Test fix for pr38763, where NULL was not being encoded.
3
!
4
! Contributed by Steve Kargl  from a
5
! posting by James van Buskirk on clf.
6
!
7
program sizetest
8
   use ISO_C_BINDING
9
   implicit none
10
   integer, parameter :: ik1 = selected_int_kind(2)
11
   TYPE vehicle_t1
12
      INTEGER(C_INT), DIMENSION(:), ALLOCATABLE :: sensors
13
   END TYPE vehicle_t1
14
   type(vehicle_t1) gfortran_bug_workaround
15
   integer i
16
   i = size(transfer(vehicle_t1(NULL()),[0_ik1]))
17
   print *, i
18
   i = size(transfer(vehicle_t1([i]),[0_ik1]))
19
   print *, i
20
end program sizetest

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.