view gcc/testsuite/gfortran.dg/finalize_28.f90 @ 118:fd00160c1b76

ifdef TARGET_64BIT
author mir3636
date Tue, 27 Feb 2018 15:01:35 +0900
parents 04ced10e8804
children 84e7813d76e9
line wrap: on
line source

! { dg-do compile }
! { dg-options "-fdump-tree-original" }
!
! Test the fix for PR64932.
!
! Reported by Daniel Shapiro  <shapero@uw.edu>
!
module coo_graphs
  implicit none
  type :: dynamic_array
    integer :: length, capacity, min_capacity
    integer, allocatable :: array(:)
  end type
  type :: coo_graph
    type(dynamic_array) :: edges(2)
    integer, private :: ne
  end type coo_graph
contains
  subroutine coo_dump_edges(g, edges)
    class(coo_graph), intent(in) :: g
    integer, intent(out) :: edges(:,:)
  end subroutine coo_dump_edges
end module coo_graphs
! { dg-final { scan-tree-dump-times "__builtin_free" 3 "original" } }