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 / webtbs / tw21177.pp
Size: Mime:
{$modeswitch ADVANCEDRECORDS}
{$OPTIMIZATION REGVAR}
program record_bug;

type
TColor = object
  R : Byte;
  function toDWord : DWord;
end;

function TColor.toDWord : DWord;
begin
  r:=4;
  toDWord:=5;
end;

procedure Fill(Color: TColor);
begin
  Color.toDWord;
  if color.r<>4 then
    halt(1);
end;

var
  c: TColor;
begin
  c.r:=1;
  Fill(c);
end.