mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-05-01 23:53:43 +02:00
25 lines
232 B
ObjectPascal
25 lines
232 B
ObjectPascal
program tmacfunret;
|
|
{$MODE MACPAS}
|
|
|
|
procedure B(var x: Integer);
|
|
|
|
begin
|
|
x:= 42;
|
|
end;
|
|
|
|
function A: Integer;
|
|
|
|
begin
|
|
B(A);
|
|
end;
|
|
|
|
var
|
|
i: Integer;
|
|
|
|
begin
|
|
i:= A;
|
|
Writeln(i);
|
|
if i <> 42 then
|
|
halt(1);
|
|
end.
|