mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-29 18:03:44 +02:00
18 lines
233 B
ObjectPascal
18 lines
233 B
ObjectPascal
{ %FAIL }
|
|
{ %CPU=i8086 }
|
|
|
|
program tanonfunc59;
|
|
|
|
{$mode objfpc}{$H+}
|
|
{$modeswitch anonymousfunctions}
|
|
|
|
type
|
|
TNearFunc = function: LongInt; near;
|
|
|
|
var
|
|
f: TNearFunc;
|
|
begin
|
|
f := function: LongInt far begin Result := 42; end;
|
|
end.
|
|
|