fpc/tests/webtbf/tw31273.pp
2017-12-31 15:18:40 +00:00

19 lines
242 B
ObjectPascal

{ %fail }
{$mode delphi}
program Project1;
{$APPTYPE CONSOLE}
function SumX(const Arr: array of SizeInt): Integer;
begin
Result := Arr[Low(Arr)];
end;
var
P: Pointer;
begin
P := nil;
Writeln(SumX(TBoundArray(nil))); // Case 2
end.