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 / tw17862.pp
Size: Mime:
{$mode objfpc}
type
 TField = record
   a,b,c: byte;
 end;
 tarray = bitpacked array[0..3] of tfield;

procedure test(var a: tfield);
begin
  if a.a<>3 then
    halt(1);
  if a.b<>4 then
    halt(2);
  if a.c<>5 then
    halt(3);
end;

var
  a: tarray;
begin
  a[1].a:=3;
  a[1].b:=4;
  a[1].c:=5;
  test(a[1]);
end.