mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 11:59:32 +02:00
24 lines
304 B
ObjectPascal
24 lines
304 B
ObjectPascal
{ %VERSION=1.1 }
|
|
|
|
procedure p1(const a:array of byte);
|
|
var
|
|
l : longint;
|
|
begin
|
|
l:=length(a);
|
|
writeln('openarray length: ',l);
|
|
if l<>9 then
|
|
halt(1);
|
|
end;
|
|
|
|
var
|
|
a : array[2..10] of byte;
|
|
l : longint;
|
|
begin
|
|
l:=length(a);
|
|
writeln('length of a ',l);
|
|
if l<>9 then
|
|
halt(1);
|
|
|
|
p1(a);
|
|
end.
|