3 ! Test the fix for PR88393 in which a segfault occurred as indicated.
5 ! Contributed by Janus Weil <janus@gcc.gnu.org>
10 character(len=:), allocatable :: cs
13 generic :: assignment(=) => ass
17 class(t), intent(inout) :: a
18 class(t), intent(in) :: b
30 type(t2), dimension(1:2) :: arr
32 arr(2)%c = arr(1)%c ! Segfault here.
33 print *, "done", arr(2)%c%cs, arr(2)%c%cs
34 ! Make sure with valgrind that there are no memory leaks.
35 deallocate (arr(1)%c%cs)
36 deallocate (arr(2)%c%cs)