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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [move_alloc_4.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 run }
2
! { dg-options "-fdump-tree-original" }
3
!
4
! PR 48700: memory leak with MOVE_ALLOC
5
!
6
! Contributed by Salvatore Filippone 
7
 
8
program testmv3
9
  type bar
10
    integer, allocatable  :: ia(:), ja(:)
11
  end type
12
 
13
  type(bar), allocatable :: sm,sm2
14
 
15
  allocate(sm)
16
  allocate(sm%ia(10),sm%ja(10))
17
 
18
  call move_alloc(sm2,sm)
19
 
20
end program testmv3
21
 
22
! { dg-final { scan-tree-dump-times "__builtin_free" 9 "original" } }
23
! { 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.