3 ! Test the fix for PR78641 in which an ICE occured on assignment
4 ! of a class array constructor to a derived type array.
6 ! Contributed by Damian Rouson <damian@sourceryinstitute.org>
13 class(foo
), allocatable
:: barfoo
15 allocate(barfoo
,source
= f(11))
16 bar
= [f(33), [f(22), barfoo
], f(1)]
17 if (any (bar
%i
.ne
. [33, 22, 11, 1])) call abort
22 function f(arg
) result(foobar
)
23 class(foo
), allocatable
:: foobar
25 allocate(foobar
,source
= foo(arg
))