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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [extends_14.f03] - 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 49466: [4.6/4.7 Regression] Memory leak with assignment of extended derived types
5
!
6
! Contributed by Rich Townsend 
7
 
8
program evolve_aflow
9
 
10
  implicit none
11
 
12
  type :: state_t
13
     real, allocatable :: U(:)
14
  end type
15
 
16
  type, extends(state_t) :: astate_t
17
  end type
18
 
19
  type(astate_t) :: a,b
20
 
21
  allocate(a%U(1000))
22
 
23
  a = b
24
 
25
end program
26
 
27
! { dg-final { scan-tree-dump-times "__builtin_free" 3 "original" } }
28
! { 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.