tb0344.pp 666 B

12345678910111213141516171819202122232425262728293031323334353637
  1. { %version=1.1 }
  2. {$R+}
  3. var
  4. s : string;
  5. error : boolean;
  6. begin
  7. error:=false;
  8. str(high(int64),s);
  9. if s<>'9223372036854775807' then
  10. begin
  11. writeln('high(int64) error!: "',s,'"');
  12. error:=true;
  13. end;
  14. str(low(int64),s);
  15. if s<>'-9223372036854775808' then
  16. begin
  17. writeln('low(int64) error!: "',s,'"');
  18. error:=true;
  19. end;
  20. {$ifdef fpc}
  21. str(high(qword),s);
  22. if s<>'18446744073709551615' then
  23. begin
  24. writeln('high(qword) error!: "',s,'"');
  25. error:=true;
  26. end;
  27. str(low(qword),s);
  28. if s<>'0' then
  29. begin
  30. writeln('low(qword) error!: "',s,'"');
  31. error:=true;
  32. end;
  33. {$endif}
  34. if error then
  35. halt(1);
  36. end.