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 / tbs / tb0657.pp
Size: Mime:
program tb0657;

{$mode objfpc}

uses
  fgl;

type
  TIntList = specialize TFPGList<LongInt>;

const
  c = 3;

var
  l: TIntList;
  i: LongInt;
begin
  l := TIntList.Create;
  try
    for i := 0 to c do
      l.Add(i);

    for i := 0 to l.Count - 1 do
      if l.List^[i] <> i then
        Halt(i + 1);
  finally
    l.Free;
  end;
end.