fpc/tests/test/tisogoto1.pp
2020-05-06 14:43:49 +00:00

46 lines
397 B
ObjectPascal

{$mode iso}
procedure test;
label
1;
procedure p;
label
2;
procedure pp;
begin
goto 2;
halt(1);
end;
begin
pp;
halt(1);
2:
goto 1;
halt(1);
end;
begin
p;
halt(1);
1:
end;
label
1;
procedure p;
begin
goto 1;
halt(1);
end;
begin
test;
p;
halt(1);
1:
writeln('ok');
end.