mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-28 16:03:48 +02:00

32 bit subrange type with high(subrange_type) <= high(longint) is converted to a float git-svn-id: trunk@13037 -
20 lines
235 B
ObjectPascal
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.
|