[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gfortran.dg / dependency_50.f90
blobdfe0a3b9f5e24154cfa905f2e1742d0e65578326
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(:)
8 words=[character(len=3) :: 'one', 'two']
9 words=[character(len=5) :: words, 'three']
10 if (any(words /= [ "one ", "two ", "three"])) call abort
12 end program dusty_corner