OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gfortran.dg/] [transfer_intrinsic_1.f90] - Blame information for rev 384

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do compile }
2
! { dg-options "-fdump-tree-original" }
3
!
4
! Check the fix for PR34955 in which three bytes would be copied
5
! from bytes by TRANSFER, instead of the required two.
6
!
7
! Contributed by Tobias Burnus  
8
!
9
subroutine BytesToString(bytes, string)
10
    type ByteType
11
      integer(kind=1) :: singleByte
12
    end type
13
    type (ByteType) :: bytes(2)
14
    character(len=*) :: string
15
    string = transfer(bytes, string)
16
  end subroutine
17
! { dg-final { scan-tree-dump-times "MIN_EXPR" 1 "original" } }
18
! { dg-final { cleanup-tree-dump "original" } }

powered by: WebSVN 2.1.0

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