mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 22:47:59 +02:00

* 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 -
20 lines
232 B
ObjectPascal
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.
|