fpc/tests/test/tfuncref27.pp

24 lines
284 B
ObjectPascal

{ %FAIL }
program tfuncref27;
{$mode objfpc}{$H+}
{$modeswitch anonymousfunctions}
{$modeswitch functionreferences}
type
TTestFunc = reference to procedure;
function DoTest: TTestFunc;
function TestSub: TTestFunc;
begin
end;
begin
Result := @TestSub;
end;
begin
end.