tb0006.pp 313 B

1234567891011121314151617181920
  1. { Old file: tbs0007.pp }
  2. { tests the infinity loop when using byte counter OK 0.9.2 }
  3. uses
  4. erroru;
  5. var
  6. count : byte;
  7. test : longint;
  8. begin
  9. test:=0;
  10. for count:=1 to 127 do
  11. begin
  12. inc(test);
  13. writeln(count,'. loop');
  14. if test>127 then
  15. Error;
  16. end;
  17. end.