fpc/tests/webtbs/tw8883.pp
Jonas Maebe f28079bcd7 + test for previous commit
git-svn-id: trunk@7353 -
2007-05-15 20:26:27 +00:00

25 lines
271 B
ObjectPascal

procedure DoTest;
var
i, j, cnt: longint;
begin
cnt:=0;
j:=1;
for i:=0 to j do
begin
Inc(cnt);
Dec(j);
end;
writeln(cnt);
if cnt <> 2 then
begin
writeln('Test failed!');
Halt(1);
end;
writeln('Test OK.');
end;
begin
dotest;
end.