fpc/tests/webtbs/tw25349.pp
Jonas Maebe 951727f453 * fixed crash when concatenating more than 2 ansistrings that are all empty
(mantis #25349, patch by C Western)

git-svn-id: trunk@26119 -
2013-11-22 12:57:41 +00:00

24 lines
270 B
ObjectPascal

procedure trashstack;
var
a: array[0..high(word)] of byte;
begin
fillchar(a,sizeof(a),$ff);
end;
procedure test;
var
s1,s2,s3,s4: ansistring;
begin
s2:='';
s3:='';
s4:='';
s1:=s2+s3+s4;
if s1<>'' then
halt(1);
end;
begin
trashstack;
test;
end.