2 ! { dg-options "-ffrontend-optimize -fdump-tree-original" }
3 ! PR fortran/52537 - optimize comparisons with empty strings
7 character(len
=30) :: line
8 character(len
=4,kind
=4) :: c4
10 read (unit
=line
,fmt
='(A)') a
12 if (c4
== 4_
' ') print *,"foobar"
13 if (trim(a
) == '') print *,"empty"
15 if (trim(a
) == ' ') print *,"empty"
19 if (b
/= ' ') print *,"full"
22 ! { dg-final { scan-tree-dump-times "_gfortran_string_len_trim" 4 "original" } }