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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! Test the fix for PR52386.
3
!
4
! Contributed by Juergen Reuter  
5
!
6
module cascades
7
  implicit none
8
  private
9
contains
10
    function reduced (array)
11
      integer, dimension(:), allocatable :: reduced
12
      integer, dimension(:), intent(in) :: array
13
      logical, dimension(size(array)) :: mask
14
      mask = .true.
15
      allocate (reduced (count (mask)))
16
      reduced = pack (array, mask)
17
    end function reduced
18
end module cascades
19
! { dg-final { cleanup-modules "cascades" } }
20
 

powered by: WebSVN 2.1.0

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