Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpc-src / usr / share / fpcsrc / 3.2.0 / tests / test / tblock1.pp
Size: Mime:
{ %target=darwin,iphonesim}
{ %skipcpu=powerpc,powerpc64 }

{$modeswitch cblocks}

type
  tblock = reference to procedure; cdecl; cblock;

procedure test(b: tblock);
  begin
    b;
  end;

procedure proc;
  begin
    writeln('called as block');
  end;

const
  bconst: tblock = @proc;

var
  b: tblock;
begin
  b:=@proc;
  b;
  test(@proc);
  test(b);
  bconst;
  test(bconst);
end.