fpc/bugs/bug0076.pp
1998-03-25 11:26:49 +00:00

25 lines
493 B
ObjectPascal

program bug0076;
{Generates wrong code when compiled with output set to intel asm.
Reported from mailinglist by Vtech Kavan.
15 Januari 1998, Daniel Mantione}
type TVtx2D = record x,y:longint end;
var Vtx2d:array[0..2] of TVtx2D;
function SetupScanLines(va,vb,vc:word):single;
var dx3d,dx2d,dy2d,dz,ex3d,ex2d,ez:longint;
r:single;
begin
dy2d := Vtx2d[vb].y;
r := (dy2d-Vtx2d[va].y); {this line causes error!!!!!!!!!!!!!!!!!!!}
end;
begin
SetupScanLines(1,2,3);
end.