mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 08:09:33 +02:00
27 lines
300 B
ObjectPascal
27 lines
300 B
ObjectPascal
{$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 9 do
|
|
A.Add(i);
|
|
B.Assign(A);
|
|
for i:= 0 to 9 do
|
|
begin
|
|
if B[i] <> i then
|
|
Halt(1);
|
|
end;
|
|
end.
|