fpc/tests/webtbs/uw25598.pp
Jonas Maebe c05da62b0e * detect static data use by record methods and methods of nested classes/
records, so we avoid inlining them (mantis )

git-svn-id: trunk@26617 -
2014-01-29 21:26:38 +00:00

23 lines
248 B
ObjectPascal

unit uw25598;
{$mode delphi}
interface
type
TR = record
class function Foo: Integer; static; inline;
end;
implementation
const
C: array[0..0] of byte = (0);
class function TR.Foo: Integer; inline;
begin
Result := C[0];
end;
end.