fpc/tests/test/tabsvr7.pp
2020-02-01 18:00:38 +00:00

19 lines
295 B
ObjectPascal

{$mode objfpc}
{$B+}
uses
sysutils;
var
{ absolute means volatile, so the expression below cannot be optimized
and must cause a sig fault }
a : longint absolute 0;
begin
try
while false and (a=0) do
break;
except
writeln('ok');
halt(0);
end;
halt(1);
end.