mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-06 22:07:56 +02:00
12 lines
176 B
ObjectPascal
12 lines
176 B
ObjectPascal
program bug;
|
|
|
|
function Func(a:longint): longint;
|
|
begin
|
|
if (a >= 0) then Func:=Trunc(1.0*a) else Func:=-Trunc(1.0*a);
|
|
end;
|
|
|
|
begin
|
|
if Func(100) <> 100 then
|
|
halt(1);
|
|
end.
|