PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / gfortran.dg / transfer_simplify_11.f90
blob0911f9dba3aba4bd4fcba41a5c75b6c709186442
1 ! { dg-do run }
2 ! PR Fortran/82841
4 integer, parameter :: N = 2
5 character(len=1) :: chr(N)
6 chr = transfer(repeat("x",ncopies=N),[character(len=1) ::], N)
7 if (chr(1) /= 'x' .and. chr(2) /= 'x') STOP 1
8 end