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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [move_alloc_5.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
!
3
! PR 48699: [4.6/4.7 Regression] [OOP] MOVE_ALLOC inside SELECT TYPE
4
!
5
! Contributed by Salvatore Filippone 
6
 
7
program testmv1
8
 
9
  type bar
10
  end type
11
 
12
  type, extends(bar) ::  bar2
13
  end type
14
 
15
  class(bar), allocatable :: sm
16
  type(bar2), allocatable :: sm2
17
 
18
  allocate (sm2)
19
  call move_alloc (sm2,sm)
20
 
21
  if (allocated(sm2)) call abort()
22
  if (.not. allocated(sm)) call abort()
23
 
24
end program

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.