{$mode objfpc}{$h+}
const
cc0 = 'value0';
cc1 = 'value1';
var
s: string;
begin
s:= 'text_';
s:= s+ '_prefix_'+cc0+cc1;
writeln(s);
end.
I see that binary file has separate places for all 3 consts:
- '_prefix_'
- 'value0'
- 'value1'
While FPC can fold all 3 to a single one. If I use brackets,
I see the single place with all 3 concatenated.
Free Pascal Compiler version 3.2.3-660-g9b2ba834a6 [2022/08/18] for x86_64