mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-16 02:10:44 +01:00
19 lines
278 B
ObjectPascal
19 lines
278 B
ObjectPascal
{$MODE objfpc}
|
|
type
|
|
TPoint = record
|
|
x, y: Integer;
|
|
end;
|
|
|
|
procedure Test(const Args: array of TPoint);
|
|
begin
|
|
writeln(Args[0].x,',',Args[0].y);
|
|
if (Args[0].x<>10) and (Args[0].y<>10) then
|
|
halt(1);
|
|
end;
|
|
|
|
const
|
|
p1: TPoint = (x: 10; y: 10);
|
|
begin
|
|
Test([p1]);
|
|
end.
|