fpc/tests/webtbs/tw9187.pp
yury fd4f90d3ff * fixed bug #9187.
+ test.

git-svn-id: trunk@7876 -
2007-06-30 21:02:10 +00:00

25 lines
354 B
ObjectPascal

var
wstr1: widestring;
procedure testproc(const avalue: widestring);
begin
wstr1:= avalue;
end;
var
i: longint;
w2: widestring;
begin
setlength(w2, 200000);
for i:=1 to length(w2) do
w2[i]:=Chr(i mod $60 + $20);
wstr1:=w2;
testproc(wstr1);
if wstr1<>w2 then begin
writeln('Test failed!');
Halt(1);
end;
writeln('Test OK.');
end.