fpc/tests/webtbs/tw33222.pp
florian 808131a7d6 + forgotten test
git-svn-id: trunk@38342 -
2018-02-25 15:34:11 +00:00

26 lines
435 B
ObjectPascal

var
hl : record
hashnext : pqword;
end;
fs : dword;
sr : record
slot : dword;
end;
procedure p;
begin
hl.hashnext[sr.slot] := (qword(fs) shl 32) or dword(hl.hashnext[sr.slot]);
end;
begin
fs:=$12341234;
sr.slot:=0;
getmem(hl.hashnext,sizeof(qword));
hl.hashnext[sr.slot]:=$1eadbeef00000000;
p;
if hl.hashnext[sr.slot]<>$1234123400000000 then
halt(1);
freemem(hl.hashnext);
writeln('ok');
end.