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.0.0 / tests / tbs / tb0433a.pp
Size: Mime:
{$ifdef fpc}
{$mode delphi}
{$else fpc}
type
  codepointer = pointer;
{$endif fpc}

function times2(x : longint) : longint;

begin
  times2:=2*x;
end;

var
 x:function(x:longint):longint;
 y:codepointer absolute x;
 z,w,v:codepointer;
begin
 x:=times2;
 z:=@x;
 w:=addr(x);
 v:=@times2;
 writeln(longint(y),' ',longint(z),' ',longint(w),' ',longint(v));
 if (z<>w) or (z<>v) or (y<>z) then
  begin
    writeln('Addr Error');
    halt(1);
  end;
 if (y<>@times2) then
  begin
    writeln('Absolute Error');
    halt(1);
  end;

end.