fpc/tests/webtbs/uw17220a.pp
Jonas Maebe 5ca1bd2a32 * if the unit of a procedure call is explicitly specified, limit the search
for (overloaded) procsyms to that unit (mantis #17220)

git-svn-id: trunk@15887 -
2010-08-23 20:51:40 +00:00

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.