URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [alloc_comp_constructor_4.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do run }! Tests the fix for PR32795, which was primarily about memory leakage is! certain combinations of alloctable components and constructors. This test! which appears in comment #2 of the PR has the advantage of a wrong! numeric result which is symptomatic.!! Contributed by Tobias Burnus <burnus@gcc.gnu.org>!type :: ainteger, allocatable :: i(:)end type atype(a) :: x, yx = a ([1, 2, 3])y = a (x%i(:)) ! used to cause a memory leak and wrong resultif (any (x%i .ne. [1, 2, 3])) call abortend
