+ test that the compiler should not allow non local goto

This commit is contained in:
olle 2004-05-18 10:35:15 +00:00
parent 6b5f84117b
commit aa9fbc040e

27
tests/tbf/tb0164.pp Normal file
View File

@ -0,0 +1,27 @@
{ %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.