Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpc-src / usr / share / fpcsrc / 3.0.0 / ide / test1.pas
Size: Mime:
unit test1;

{$mode objfpc}

{ 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.