mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 12:48:48 +02:00
24 lines
290 B
ObjectPascal
24 lines
290 B
ObjectPascal
|
|
{$mode delphi}
|
|
uses
|
|
Types;
|
|
|
|
type
|
|
TArrayFunc = function: TIntegerDynArray;
|
|
|
|
function MyFunc : TIntegerDynArray;
|
|
begin
|
|
SetLength(Result,1);
|
|
Result[0]:=$12345678;
|
|
end;
|
|
|
|
var
|
|
f: TArrayFunc;
|
|
i: integer;
|
|
begin
|
|
f := @MyFunc;
|
|
i := f[0];
|
|
if i<>$12345678 then
|
|
halt(1);
|
|
end.
|