fpc/tests/tbs/tb0602.pp
Jonas Maebe 555634b755 * (re)set upper bits of register when appropriate for all operations in
a_op_reg_reg() (except for NOT, which was already handled correctly)
    + test

git-svn-id: trunk@25840 -
2013-10-22 07:41:52 +00:00

20 lines
208 B
ObjectPascal

{$ifdef fpc}
{$mode delphi}
{$endif}
procedure test;
var
w: word;
arr: array[0..1] of word;
begin
arr[1]:=2;
w:=1;
dec(w,arr[w]);
if cardinal(w)<>$ffff then
halt(1);
end;
begin
test;
end.