mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 21:29:05 +02:00
17 lines
278 B
ObjectPascal
17 lines
278 B
ObjectPascal
{ %FAIL }
|
|
{ %TARGET=darwin,iphonesim,ios }
|
|
|
|
{ a C-block may not reference itself }
|
|
|
|
program tblock6;
|
|
|
|
{$mode objfpc}
|
|
{$modeswitch cblocks}
|
|
{$modeswitch functionreferences}
|
|
|
|
type
|
|
TBlock = reference to function(l: specialize TArray<TBlock>): LongInt; cdecl; cblock;
|
|
|
|
begin
|
|
end.
|