1! { dg-do compile }
2!
3! Check that move alloc handles different, type compatible
4! declared types
5!
6type t
7end type t
8type, extends(t) :: t2
9end type t2
10
11class(t), allocatable :: x
12class(t2), allocatable :: y
13allocate(y)
14call move_alloc (y, x)
15end
16