mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-01-05 00:30:47 +01:00
18 lines
231 B
ObjectPascal
18 lines
231 B
ObjectPascal
{ %FAIL }
|
|
{ %CPU=i8086 }
|
|
|
|
program tanonfunc58;
|
|
|
|
{$mode objfpc}{$H+}
|
|
{$modeswitch anonymousfunctions}
|
|
|
|
type
|
|
TFarFunc = function: LongInt; far;
|
|
|
|
var
|
|
f: TFarFunc;
|
|
begin
|
|
f := function: LongInt near begin Result := 42; end;
|
|
end.
|
|
|