aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/move_alloc_7.f90
blob: d2bc82c7ca0fa41cac732ed1ea203bed161ca00b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
! { dg-do compile }
!
! Check that move alloc handles different, type compatible
! declared types
!
type t
end type t
type, extends(t) :: t2
end type t2

class(t), allocatable :: x
class(t2), allocatable :: y
allocate(y)
call move_alloc (y, x)
end