fpc/tests/tbs/tb0555.pp

22 lines
364 B
ObjectPascal
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

function DoTest(params: array of PWideChar): WideString;
var
i: integer;
res: WideString;
begin
res:='';
for i:=Low(params) to High(params) do
res:=res + params[i];
DoTest:=res;
end;
var
s: WideString;
begin
s:=DoTest(['аб', 'вг', 'де']);
if s <> 'абвгде' then begin
writeln('Test failed. S=', s);
Halt(1);
end;
end.