fpc/packages/ide/test1.pas
florian 3ce7927096 * made the ide a package, so it can be build in parallel with the other packages, reasons:
- lowers build times
  - ide is not that important anymore than years before
  - other utils like pastojs are also located in the packages tree

git-svn-id: trunk@37926 -
2018-01-06 20:22:30 +00:00

37 lines
558 B
ObjectPascal

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.