mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 09:29:25 +02:00
40 lines
578 B
ObjectPascal
40 lines
578 B
ObjectPascal
unit uw17220a;
|
|
{$ifdef fpc}
|
|
{$mode objfpc}{$H+}
|
|
{$endif}
|
|
interface
|
|
|
|
uses
|
|
SysUtils;
|
|
|
|
procedure test;
|
|
function IntToHEX(Value, Digits: int64): string; overload;
|
|
|
|
implementation
|
|
|
|
function IntToHEX(Value, Digits: int64): string;
|
|
begin
|
|
IntToHEX := 'passedq';
|
|
end;
|
|
|
|
function IntToHEX(Value, Digits: longint): string; overload;
|
|
begin
|
|
IntToHEX := 'passedl';
|
|
end;
|
|
|
|
procedure test;
|
|
var
|
|
l: longint;
|
|
i: int64;
|
|
begin
|
|
l:=0;
|
|
i:=0;
|
|
if uw17220a.inttohex(l,l)<>'passedl' then
|
|
halt(1);
|
|
if uw17220a.inttohex(i,i)<>'passedq' then
|
|
halt(2);
|
|
end;
|
|
|
|
end.
|
|
|