mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 12:09:16 +02: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.
|
|
|