libgfortran/ChangeLog:
[official-gcc.git] / gcc / testsuite / gfortran.dg / allocate_alloc_opt_13.f90
blob462b12130c5a888a74e9cca21517fea3162386a4
1 ! { dg-do compile }
3 ! PR fortran/51953
6 type t
7 end type t
9 class(t), allocatable :: a, c(:), e(:)
10 class(t), pointer :: b, d(:)
12 allocate (a, b, source=c(1))
13 allocate (c(4), d(6), source=e)
15 allocate (a, b, source=f())
16 allocate (c(1), d(6), source=g())
18 contains
19 function f()
20 class(t), allocatable :: f
21 end function
22 function g()
23 class(t), allocatable :: g(:)
24 end function
25 end