fpc/tests/webtbs/tw4778.pp
Jonas Maebe 92c389aaeb * fixed web bug #4778 (explicit type casting of float to int in tp/delphi
keeps the bit pattern instead of converting)

git-svn-id: trunk@2509 -
2006-02-10 11:05:47 +00:00

21 lines
286 B
ObjectPascal

{ Source provided for Free Pascal Bug Report 4778 }
{ Submitted by "Phil H." on 2006-02-06 }
{ e-mail: pjhess@purdue.edu }
program Test1;
{$mode delphi}
var
AnInt : Integer;
begin
AnInt := 1;
if single(anint) > 0.9 then
halt(1);
// WriteLn(Double(AnInt));
end.