mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-01 11:10:26 +02:00
* Correct properties on tb0529
git-svn-id: trunk@6514 -
This commit is contained in:
parent
5792438e3a
commit
34bdb90822
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -6226,7 +6226,6 @@ tests/tbs/tb0525.pp svneol=native#text/plain
|
|||||||
tests/tbs/tb0526.pp -text
|
tests/tbs/tb0526.pp -text
|
||||||
tests/tbs/tb0527.pp svneol=native#text/plain
|
tests/tbs/tb0527.pp svneol=native#text/plain
|
||||||
tests/tbs/tb0528.pp svneol=native#text/x-pascal
|
tests/tbs/tb0528.pp svneol=native#text/x-pascal
|
||||||
tests/tbs/tb0529.pp -text
|
|
||||||
tests/tbs/ub0060.pp svneol=native#text/plain
|
tests/tbs/ub0060.pp svneol=native#text/plain
|
||||||
tests/tbs/ub0069.pp svneol=native#text/plain
|
tests/tbs/ub0069.pp svneol=native#text/plain
|
||||||
tests/tbs/ub0119.pp svneol=native#text/plain
|
tests/tbs/ub0119.pp svneol=native#text/plain
|
||||||
|
@ -1,22 +1,22 @@
|
|||||||
{ It tests conversion from "array of char" to "array of PChar" }
|
{ It tests conversion from "array of char" to "array of PChar" }
|
||||||
|
|
||||||
function DoTest(params: array of PChar): string;
|
function DoTest(params: array of PChar): string;
|
||||||
var
|
var
|
||||||
i: integer;
|
i: integer;
|
||||||
res: string;
|
res: string;
|
||||||
begin
|
begin
|
||||||
res:='';
|
res:='';
|
||||||
for i:=Low(params) to High(params) do
|
for i:=Low(params) to High(params) do
|
||||||
res:=res + params[i];
|
res:=res + params[i];
|
||||||
DoTest:=res;
|
DoTest:=res;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
var
|
var
|
||||||
s: string;
|
s: string;
|
||||||
begin
|
begin
|
||||||
s:=DoTest(['1', '2', '3']);
|
s:=DoTest(['1', '2', '3']);
|
||||||
if s <> '123' then begin
|
if s <> '123' then begin
|
||||||
writeln('Test failed. S=', s);
|
writeln('Test failed. S=', s);
|
||||||
Halt(1);
|
Halt(1);
|
||||||
end;
|
end;
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user