mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 18:49:16 +02:00
+ test for previous commit
git-svn-id: trunk@7353 -
This commit is contained in:
parent
2c5a284060
commit
f28079bcd7
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -8221,6 +8221,7 @@ tests/webtbs/tw8810.pp svneol=native#text/plain
|
|||||||
tests/webtbs/tw8838.pp svneol=native#text/plain
|
tests/webtbs/tw8838.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw8861.pp svneol=native#text/plain
|
tests/webtbs/tw8861.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw8870.pp svneol=native#text/plain
|
tests/webtbs/tw8870.pp svneol=native#text/plain
|
||||||
|
tests/webtbs/tw8883.pp svneol=native#text/plain
|
||||||
tests/webtbs/ub1873.pp svneol=native#text/plain
|
tests/webtbs/ub1873.pp svneol=native#text/plain
|
||||||
tests/webtbs/ub1883.pp svneol=native#text/plain
|
tests/webtbs/ub1883.pp svneol=native#text/plain
|
||||||
tests/webtbs/uw0555.pp svneol=native#text/plain
|
tests/webtbs/uw0555.pp svneol=native#text/plain
|
||||||
|
24
tests/webtbs/tw8883.pp
Normal file
24
tests/webtbs/tw8883.pp
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
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.
|
Loading…
Reference in New Issue
Block a user