fpc/tests/webtbs/tw26534b.pp
florian 42020c8bb8 * when passing a parameter by var/out, its address leaves the current scope so the compiler has to take care of this
* when getting rid of temps. of inline parameters, take care if somewhere an alias of the variable might exist, resolves #24796 and #26534

git-svn-id: trunk@29616 -
2015-02-03 21:05:39 +00:00

20 lines
232 B
ObjectPascal

{ %opt=-O2 }
// Opt.level: -O2
{$inline on}
program test2;
procedure redirect( p: pointer );
begin
end;
procedure inlined( var R: byte ); inline;
begin
redirect(@R);
end;
var
a: byte;
begin
inlined(a); // ie2006111510
end.