3 ! Test the fix for PR89200, in which the indexing did not work in
4 ! the write statement below.
6 ! Contributed by Damian Rouson <damian@sourceryinstitute.org>
9 character(len
=:), allocatable
:: string
12 type(foo
), allocatable
:: entry(:)
15 character(4) :: buffer
16 list
= foo_list([foo('12'), foo('34')])
17 write(buffer
, '(2a2)') list
%entry(1)%string
, list
%entry(2)%string
18 if (buffer
.ne
. '1234') stop 1
19 deallocate (list
%entry)