2 ! { dg-options "-O -fdump-tree-original" }
3 ! PR 47065 - replace trim with substring expressions even with references.
11 character(len
=10) :: line
13 write(unit
=line
,fmt
='(A,A)') trim(a
%x
),"X"
14 if (line
/= 'aX ') call abort
16 write (unit
=line
,fmt
='(A,A)') trim(b
),"Y"
17 if (line
/= 'abY ') call abort
19 ! { dg-final { scan-tree-dump-times "string_len_trim" 2 "original" } }