2 ! Test the fix for PR47519, in which the character length was not
3 ! calculated for the SOURCE expressions below and an ICE resulted.
5 ! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
9 character(:), allocatable :: name
10 character(:), allocatable :: src
13 allocate(name, SOURCE=repeat('x',n))
14 if (name .ne. 'xxxxxxxxxx') call abort
15 if (len (name) .ne. 10 ) call abort
18 allocate(name, SOURCE=repeat(src,n))
19 if (name(37:40) .ne. 'xyxy') call abort
20 if (len (name) .ne. 40 ) call abort