fpc/tests/webtbs/tw35841.pp
florian c2c7c23f21 * fix #35841 also for break and continue
git-svn-id: trunk@47070 -
2020-10-09 20:55:38 +00:00

55 lines
642 B
ObjectPascal

{ %norun }
{$mode objfpc}
procedure p1;
begin
try
writeln;
except
try
writeln;
Exit;
finally
writeln;
end;
end;
end;
procedure p2;
var
i : longint;
begin
for i:=1 to 10 do
try
writeln;
except
try
writeln;
break;
finally
writeln;
end;
end;
end;
procedure p3;
var
i : longint;
begin
for i:=1 to 10 do
try
writeln;
except
try
writeln;
continue;
finally
writeln;
end;
end;
end;
begin
end.