fpc/tests/webtbs/tw8028.pp
Jonas Maebe 5988e6d117 * niln has a compelxity of 0 (so the inlining code doesn't try to take
its address) (mantis 8028)

git-svn-id: trunk@5735 -
2006-12-29 01:11:41 +00:00

29 lines
343 B
ObjectPascal

program test;
{$mode objfpc}
{$inline on}
type
TTest = procedure of object;
TMyRecord = record
Test: TTest;
end;
TMyObject = class
procedure Test;
end;
function TMyRecordMake(const Test: TTest): TMyRecord; inline;
begin
Result.Test := Test;
end;
procedure TMyObject.Test;
begin
TMyRecordMake(nil);
end;
begin
end.