fpc/tests/test/tinline7.pp
Jonas Maebe 168e652d42 + support for simplifying simple inline functions down to a single
constant node (rather than to just a blocknode with a statement
    assigning a constant to a temp)

git-svn-id: trunk@6832 -
2007-03-13 22:27:55 +00:00

12 lines
145 B
ObjectPascal

{$inline on}
function f(const a,b: longint): longint; inline;
begin
f:=a*b;
end;
begin
if (f(f(f(2,5),3),4) <> 120) then
halt(1);
end.