lto: Remove random_seed from section name.
[official-gcc.git] / gcc / testsuite / gfortran.dg / dependency_51.f90
blob6cd6af91221e2920bd82ab194b3489205893bb19
1 ! { dg-do run }
2 ! PR 83224 - dependency mishandling with an array constructor
3 ! Original test case by Urban Jost
4 program dusty_corner
5 implicit none
6 character(len=:),allocatable :: words(:)
7 integer :: n
9 words=[character(len=3) :: 'one', 'two']
10 n = 5
11 words=[character(len=n) :: words, 'three']
12 if (any(words /= [ "one ", "two ", "three"])) STOP 1
14 end program dusty_corner