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') STOP 1
15 if (len (name) .ne. 10 ) STOP 2
18 allocate(name, SOURCE=repeat(src,n))
19 if (name(37:40) .ne. 'xyxy') STOP 3
20 if (len (name) .ne. 40 ) STOP 4