2 ! PR 47065 - make sure that trim optimization does not lead to
3 ! wrong-code with aliasing.
4 ! Test case provided by Tobias Burnus.
6 character(len
=12) :: str
8 call sub(trim(str
), str
)
9 ! Should print '12345 '
10 if (str
/= '12345 ') STOP 1
12 if (str
/= '123 ') STOP 2
15 character(len
=*), intent(in
) :: a
16 character(len
=*), intent(out
) :: b
21 character(len
=*), intent(in
) :: a