mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 17:07:54 +02:00
21 lines
249 B
ObjectPascal
21 lines
249 B
ObjectPascal
|
|
{$inline on }
|
|
|
|
var A: array [0..1] of Integer;
|
|
|
|
function F: Integer; inline;
|
|
begin
|
|
F := A[1];
|
|
end;
|
|
|
|
begin
|
|
A[0] := 1234;
|
|
A[1] := 5678;
|
|
WriteLn(F); { writes 1234 }
|
|
if F<>5678 then
|
|
begin
|
|
Writeln('ERROR!');
|
|
Halt(1);
|
|
end;
|
|
end.
|