fpc/tests/tbs/tb0583.pp
Jonas Maebe f5de7e34d3 * only remove the calculation of unused parameters of inline routines if
they don't have explicit side-effects, and if -Oodeadvalues (part of -O4)
    is active (because it can result in the removal of range check errors,
    segmentation faults, etc)

git-svn-id: trunk@22254 -
2012-08-26 21:04:46 +00:00

18 lines
179 B
ObjectPascal

{ %opt=-O-3 }
{ %result=201 }
{$inline on}
{$r+}
procedure test(l: longint); inline;
begin
end;
var
a: array[0..0] of byte;
i: longint;
begin
i:=1345;
test(a[i]);
end.