2 ! { dg-options "-std=legacy" }
4 ! Test assignments from character pointer functions with dependencies
5 ! are correctly resolved.
6 ! Provided by Paul Thomas pault@gcc.gnu.org
7 program char_pointer_dependency
9 character*4, pointer :: c2(:)
11 c2
= (/"abcd","efgh"/)
13 if (c2(1) /= "efgh") call abort ()
14 if (c2(2) /= "abcd") call abort ()
17 function afoo (ac0
) result (ac1
)
20 character*4, pointer :: ac1(:)
26 end program char_pointer_dependency