fpc/tests/webtbs/tw23849.pp
2013-11-14 15:47:49 +00:00

24 lines
266 B
ObjectPascal

{$mode delphi}
{$q+}
function F(N: integer) : integer;
var NN : integer;
begin
NN := N;
if NN < 0 then NN := 0 - NN;
result := NN;
end;
procedure Crash; cdecl;
var
N, M : integer;
begin
N := -10;
M := F(N) div 4;
end;
begin
Crash;
end.