fpc/tests/tbs/tb0529.pp
daniel 34bdb90822 * Correct properties on tb0529
git-svn-id: trunk@6514 -
2007-02-16 18:02:57 +00:00

23 lines
392 B
ObjectPascal

{ It tests conversion from "array of char" to "array of PChar" }
function DoTest(params: array of PChar): string;
var
i: integer;
res: string;
begin
res:='';
for i:=Low(params) to High(params) do
res:=res + params[i];
DoTest:=res;
end;
var
s: string;
begin
s:=DoTest(['1', '2', '3']);
if s <> '123' then begin
writeln('Test failed. S=', s);
Halt(1);
end;
end.