mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 21:32:02 +02:00
21 lines
245 B
ObjectPascal
21 lines
245 B
ObjectPascal
program tarrconstr1;
|
|
|
|
{$mode delphi}
|
|
|
|
type
|
|
TAB = array of byte;
|
|
var
|
|
D: TAB;
|
|
i: integer;
|
|
begin
|
|
i:=1;
|
|
D := TAB.create(1+2, i);
|
|
if Length(D) <> 2 then
|
|
halt(1);
|
|
if D[0] <> 3 then
|
|
halt(2);
|
|
if D[1] <> i then
|
|
halt(3);
|
|
end.
|
|
|