fpc/tests/webtbs/tw8321.pp
pierre 544d33bf48 Range and overflow check explicitly disabled
git-svn-id: trunk@34013 -
2016-06-21 08:18:22 +00:00

41 lines
533 B
ObjectPascal

{ Explicitly disable range and overflow checks for this test }
{$Q-}
{$R-}
var
A: byte;
w : word;
B,B2: cardinal;
s : string;
p : pointer;
err : boolean;
begin
B := $ffffffed;
B2 := $fffffffd;
p:=POinter(B-B2);
Str(B-B2,s);
writeln(s);
if s<>'-16' then
err:=true;
W:=65535;
A:=20;
Str(a * w - 256000000,s);
p:=POinter(a * w - 256000000);
writeln(s);
{$ifdef cpu64}
if s<>'18446744073454862316' then
{$else cpu64}
if s<>'-254689300' then
{$endif cpu64}
err:=true;
if err then
halt(1);
end.