mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 04:48:02 +02:00
28 lines
283 B
ObjectPascal
28 lines
283 B
ObjectPascal
{ %fail }
|
|
|
|
program tb0164;
|
|
|
|
{ Non local goto cannot be handled properly by the compiler,
|
|
and should therefore not be allowed.}
|
|
|
|
{$GOTO ON}
|
|
|
|
procedure foo;
|
|
|
|
label 999;
|
|
|
|
procedure bar;
|
|
|
|
begin
|
|
goto 999
|
|
end;
|
|
|
|
begin
|
|
bar;
|
|
999:
|
|
end;
|
|
|
|
begin
|
|
foo;
|
|
end.
|