mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-24 23:29:15 +02:00
+ test for already fixed bug so this avoids that is is reintroduced
This commit is contained in:
parent
2a7744df80
commit
773babd45d
43
tests/test/texception12.pp
Normal file
43
tests/test/texception12.pp
Normal 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.
|
Loading…
Reference in New Issue
Block a user