mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 17:28:16 +02:00

* several fixes to liveness analysis * get rid of old version defines + tests git-svn-id: trunk@26159 -
27 lines
328 B
ObjectPascal
27 lines
328 B
ObjectPascal
{ %OPT=-Oodfa -Sew -vw -S2}
|
|
{ %NORUN}
|
|
|
|
program tdfa5;
|
|
|
|
function getmeandinc(var i : longint) : longint;
|
|
begin
|
|
result:=i;
|
|
inc(i);
|
|
end;
|
|
|
|
|
|
function f(i : longint) : longint;
|
|
var
|
|
j : longint;
|
|
begin
|
|
if getmeandinc(j)>i then
|
|
repeat
|
|
if j>-1 then
|
|
inc(j);
|
|
until j>i;
|
|
result:=i+j;
|
|
end;
|
|
|
|
begin
|
|
end.
|