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 / webtbs / tw0859.pp
Size: Mime:
type
  TBoolArray = array [0..1048576] of Boolean;

procedure OrBoolProc(var Vector1; const Vector2; Count: Integer);
var
  I: Integer;
begin
  for I:=0 to Count - 1 do
    TBoolArray(Vector1)[I]:=TBoolArray(Vector1)[I] or TBoolArray(Vector2)[I];
end;

var
  A, B: array [0..10] of Boolean;
  I: Integer;
const
  error : boolean = false;
begin
  for I:=0 to High(A) do A[I]:=False;
  for I:=0 to High(B) do B[I]:=True;
  OrBoolProc(A, B, SizeOf(A));
  for I:=0 to High(A) do
    begin
      write(A[I], ' ');
      if not A[i] then
        error:=true;
    end;
  writeln;
  if error then
    Halt(1);

end.