fpc/tests/tbs/tb0583a.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

25 lines
222 B
ObjectPascal

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