mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-17 06:40:39 +01:00
tcallparanode.copy_value_by_ref_para() if the array is empty
(mantis #30007)
git-svn-id: trunk@33595 -
17 lines
270 B
ObjectPascal
17 lines
270 B
ObjectPascal
program project6;
|
|
|
|
{$r+}
|
|
|
|
function LinesToText(Lines: array of String): String;
|
|
begin
|
|
end;
|
|
|
|
var
|
|
SomeLines: array of String;
|
|
begin
|
|
SetLength(SomeLines,1);
|
|
LinesToText(SomeLines); // <-- ok
|
|
SetLength(SomeLines,0);
|
|
LinesToText(SomeLines); // <-- range error
|
|
end.
|