uw17220a.pp 578 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. unit uw17220a;
  2. {$ifdef fpc}
  3. {$mode objfpc}{$H+}
  4. {$endif}
  5. interface
  6. uses
  7. SysUtils;
  8. procedure test;
  9. function IntToHEX(Value, Digits: int64): string; overload;
  10. implementation
  11. function IntToHEX(Value, Digits: int64): string;
  12. begin
  13. IntToHEX := 'passedq';
  14. end;
  15. function IntToHEX(Value, Digits: longint): string; overload;
  16. begin
  17. IntToHEX := 'passedl';
  18. end;
  19. procedure test;
  20. var
  21. l: longint;
  22. i: int64;
  23. begin
  24. l:=0;
  25. i:=0;
  26. if uw17220a.inttohex(l,l)<>'passedl' then
  27. halt(1);
  28. if uw17220a.inttohex(i,i)<>'passedq' then
  29. halt(2);
  30. end;
  31. end.