fpc/tests/tbs/tb0558.pp
Jonas Maebe dbeb3e060f * fixed internalerror(2007120903) when using -Cfsse2 in case an unsigned
32 bit subrange type with high(subrange_type) <= high(longint) is
    converted to a float

git-svn-id: trunk@13037 -
2009-04-25 11:40:02 +00:00

20 lines
235 B
ObjectPascal

{ %cpu=i386}
{ %opt=-Cfsse2 }
{$mode objfpc}
type
TChartZPosition = 0..MaxInt;
TDoublePoint = record x, y: double; end;
var
d: double;
z: TChartZPosition;
begin
d:=5.0;
z:=3;
d:=d-z;
if (d<>2.0) then
halt(1);
end.