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

Subversion Repositories openrisc

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

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 47637: [OOP] Memory leak involving INTENT(OUT) CLASS argument w/ allocatable components
5
!
6
! Contributed by Rich Townsend 
7
 
8
program test
9
 
10
type :: t
11
  integer, allocatable :: i(:)
12
end type
13
 
14
type(t) :: a
15
 
16
call init(a)
17
call init(a)
18
 
19
contains
20
 
21
  subroutine init(x)
22
    class(t), intent(out) :: x
23
    allocate(x%i(1000))
24
  end subroutine
25
 
26
end program
27
 
28
! { dg-final { scan-tree-dump-times "__builtin_free" 3 "original" } }
29
! { 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.