mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 14:27:59 +02:00
19 lines
252 B
ObjectPascal
19 lines
252 B
ObjectPascal
{$mode delphi}
|
|
|
|
program Project1;
|
|
{$APPTYPE CONSOLE}
|
|
|
|
function SumX(const Arr: array of SizeInt): Integer;
|
|
begin
|
|
if high(arr)<>-1 then
|
|
halt(1);
|
|
result:=1;
|
|
end;
|
|
|
|
var
|
|
P: Pointer;
|
|
begin
|
|
P := nil;
|
|
Writeln(SumX(TBoundArray(P))); // Case 1
|
|
end.
|