fpc/tests/webtbs/tw4534.pp
Jonas Maebe b9a66c4f25 * fixed test
git-svn-id: trunk@2975 -
2006-03-19 20:26:29 +00:00

29 lines
349 B
ObjectPascal

type
pbyte = ^byte;
procedure checksigns(a,b: extended);
var
p1, p2: pbyte;
i: longint;
begin
p1 := @a;
p2 := @b;
for i := 1 to sizeof(a) do
begin
if (p1^ xor p2^) = $80 then
halt(0);
inc(p1);
inc(p2);
end;
halt(1);
end;
var x,y:extended;
Begin
x:=-0.0;
y:=0.0;
checksigns(x,y);
End.