mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 22:27:57 +02:00
17 lines
259 B
ObjectPascal
17 lines
259 B
ObjectPascal
{ %FAIL }
|
|
{ %TARGET=darwin,iphonesim,ios }
|
|
|
|
{ a C-block may not reference itself }
|
|
|
|
program tblock5;
|
|
|
|
{$mode objfpc}
|
|
{$modeswitch cblocks}
|
|
{$modeswitch functionreferences}
|
|
|
|
type
|
|
TBlock = reference to function(l: TBlock): LongInt; cdecl; cblock;
|
|
|
|
begin
|
|
end.
|