mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 10:18:22 +02:00
38 lines
564 B
ObjectPascal
38 lines
564 B
ObjectPascal
unit test1;
|
|
|
|
{$mode objfpc}
|
|
{$H-}
|
|
|
|
{ dummy unit for test of dbx stabs info PM }
|
|
|
|
interface
|
|
|
|
function TestOne : longint;
|
|
function TestOne(val : longint) : longint; overload;
|
|
function TestOne(val : string) : longint; overload;
|
|
|
|
|
|
implementation
|
|
|
|
function TestOne : longint;
|
|
begin
|
|
result:=1;
|
|
end;
|
|
|
|
function TestOne(val : longint) : longint; overload;
|
|
begin
|
|
result:=val;
|
|
end;
|
|
|
|
function TestOne(val : string) : longint; overload;
|
|
var
|
|
value, error : longint;
|
|
begin
|
|
system.val(val,value,error);
|
|
if error=0 then
|
|
result:=value
|
|
else
|
|
result:=-1;
|
|
end;
|
|
end.
|