+ test for already fixed bug so this avoids that is is reintroduced

This commit is contained in:
Florian Klämpfl 2022-01-23 20:11:12 +01:00
parent 2a7744df80
commit 773babd45d

View File

@ -0,0 +1,43 @@
{ %opt=-O3 }
program Project1;
{$mode objfpc}{$H+}
uses SysUtils;
var
bar: boolean;
procedure Foo;
begin
while true do begin
try
try
try
if bar then
raise Exception.Create('');
Randomize;
finally
Randomize;
try
Randomize;
finally
Randomize;
end;
end;
Randomize;
finally
Randomize;
end;
Randomize;
except
bar := false;
Randomize;
halt(0);
end;
end;
end;
begin
bar := true;
Foo;
end.