fpc/tests/test/jvm/tsmallintarr.pp
Jonas Maebe 54964d92eb + forgot to commit, part of r26472
git-svn-id: trunk@27382 -
2014-03-30 16:55:03 +00:00

19 lines
258 B
ObjectPascal

program tsmallintarr;
procedure test;
var
a: smallint;
l: longint;
b: array[smallint] of byte;
begin
for a:=low(b) to high(b) do
b[a]:=a and 255;
for l:=low(b) to high(b) do
if b[l]<>(l and 255) then
halt(1);
end;
begin
test
end.