{$mode objfpc}
program test;
uses
fgl;
type
TIntList = specialize TFPGList<Integer>;
var
A, B: TIntList;
i: Integer;begin
A := TIntList.Create;
B := TIntList.Create;for i :=0 to 9do
A.Add(i);
B.Assign(A);for i:=0 to 9dobeginif B[i] <> i thenHalt(1);end;end.