fpc/tests/test/tendian1.pp
florian 409ee19a83 * another old test added
git-svn-id: trunk@5161 -
2006-11-01 21:02:12 +00:00

11 lines
152 B
ObjectPascal

var
l : dword;
begin
l:=$deadbeef;
if SwapEndian(l)=l then
halt(1);
if SwapEndian(SwapEndian(l))<>l then
halt(1);
writeln('ok');
end.