fpc/tests/test/opt/tdfa6.pp
florian 99eadb91b3 * run CheckAndWarn to get proper locations for warnings about uninitialized variables
* several fixes to liveness analysis
* get rid of old version defines
+ tests

git-svn-id: trunk@26159 -
2013-12-01 17:01:51 +00:00

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.