mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 10:48:30 +02:00
25 lines
265 B
ObjectPascal
25 lines
265 B
ObjectPascal
{%OPT=-O2}
|
|
|
|
procedure Proc1(i: integer);
|
|
begin
|
|
if i = 1 then
|
|
Inc(i);
|
|
end;
|
|
|
|
procedure Proc2;
|
|
begin
|
|
writeln('Test failed!');
|
|
Halt(1);
|
|
end;
|
|
|
|
var
|
|
i, j: integer;
|
|
|
|
begin
|
|
if (i = 0) and (j = 0) then
|
|
Proc1(i)
|
|
else
|
|
Proc2;
|
|
writeln('Test OK.');
|
|
end.
|