OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [internal_pack_5.f90] - Blame information for rev 708

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! { dg-options "-fdump-tree-original" }
3
!
4
! PR fortran/36909
5
!
6
! Check that no unneeded internal_unpack is
7
! called (INTENT(IN)!).
8
!
9
program test
10
  implicit none
11
  integer :: a(3,3)
12
  call foo(a(1,:))
13
contains
14
  subroutine foo(x)
15
    integer,intent(in) :: x(3)
16
  end subroutine foo
17
end program test
18
 
19
! { dg-final { scan-tree-dump-times "_gfortran_internal_pack" 1 "original" } }
20
! { dg-final { scan-tree-dump-times "_gfortran_internal_unpack" 0 "original" } }
21
! { 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.