2 ! { dg-options "-O -fdump-tree-original" }
3 ! PR 40628 - optimize unnecessary TRIMs on assignment
6 character(len
=4) :: b
,c
10 if (a
/= 'abc') call abort
11 if (c
/= 'abc') call abort
14 ! { dg-final { scan-tree-dump-times "memmove" 2 "original" } }
15 ! { dg-final { scan-tree-dump-times "string_trim" 0 "original" } }
16 ! { dg-final { cleanup-tree-dump "original" } }