blob: aa452089fc7b5453ccf1e6c20b366b9f4160e520 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
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.
|