tb0567.pp 790 B

12345678910111213141516171819202122232425262728293031
  1. begin
  2. if (pred(-128)<>-129) or
  3. (succ(127)<>128) then
  4. halt(1);
  5. if (pred(0)<>-1) or
  6. (succ(255)<>256) then
  7. halt(2);
  8. if (pred(-32768)<>-32769) or
  9. (succ(32767)<>32768) then
  10. halt(3);
  11. if (succ(65535)<>65536) then
  12. halt(4);
  13. if (pred(-2147483648)<>-2147483649) or
  14. (succ(2147483647)<>2147483648) then
  15. halt(5);
  16. if (succ(4294967295)<>4294967296) then
  17. halt(6);
  18. if (pred(bytebool(false))<>bytebool(true)) then
  19. halt(7);
  20. if (succ(bytebool(true))<>bytebool(false)) then
  21. halt(8);
  22. if (pred(wordbool(false))<>wordbool(true)) then
  23. halt(9);
  24. if (succ(wordbool(true))<>wordbool(false)) then
  25. halt(10);
  26. if (pred(longbool(false))<>longbool(true)) then
  27. halt(11);
  28. if (succ(longbool(true))<>longbool(false)) then
  29. halt(12);
  30. end.