mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 17:19:33 +02:00
* length(array)
This commit is contained in:
parent
db87f86f00
commit
f2d3037fd4
23
tests/tbs/tb0363.pp
Normal file
23
tests/tbs/tb0363.pp
Normal file
@ -0,0 +1,23 @@
|
||||
{ %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.
|
Loading…
Reference in New Issue
Block a user