mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 19:49:31 +02:00
20 lines
241 B
ObjectPascal
20 lines
241 B
ObjectPascal
{ %FAIL }
|
|
|
|
program tb0298;
|
|
|
|
{$mode delphi}
|
|
{$modeswitch functionreferences}
|
|
|
|
type
|
|
TMyProc = reference to procedure(aArg: LongInt);
|
|
|
|
procedure Test(aArg: TObject);
|
|
begin
|
|
end;
|
|
|
|
var
|
|
arr: array of TMyProc;
|
|
begin
|
|
Insert(Test, arr, 0);
|
|
end.
|