fpc/tests/webtbs/tw4253.pp
florian 804207239d *c <int64>:=-<longint> fixed (bug 4253)
git-svn-id: trunk@796 -
2005-08-05 19:00:30 +00:00

18 lines
391 B
ObjectPascal

{ Source provided for Free Pascal Bug Report 4253 }
{ Submitted by "Gerhard" on 2005-08-03 }
{ e-mail: gs@g--s.de }
program tirange ;
var
// Count : -high ( cardinal )..high ( cardinal ) ;
Count : int64 ;
long : longint ;
begin
count := -1 ;
writeln ( count ) ; // gives -1
long := 1 ;
count := -long ;
writeln ( count ) ; // gives 4294967295
end.