2 ! Test the fix for comment #8 of PR41478, in which copying
3 ! allocatable scalar components caused a segfault.
5 ! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
9 integer, allocatable
:: entry
11 type(container_t
), dimension(1) :: a1
, a2
12 allocate (a1(1)%entry, a2(1)%entry)
14 a1(1:1) = pack (a2(1:1), mask
= [.true
.])
15 deallocate (a2(1)%entry)
16 if (a1(1)%entry .ne
. 1) call abort