tb0377.pp 252 B

12345678910111213141516171819
  1. {$ifdef fpc}{$mode tp}{$endif}
  2. {$ifdef ENDIAN_BIG}
  3. begin
  4. end.
  5. {$else}
  6. var
  7. i : longint;
  8. j : word;
  9. begin
  10. j:=5;
  11. i:=-1;
  12. { this is allowed in tp7 }
  13. byte(i):=j;
  14. writeln('i: ',i,' (should be -251)');
  15. if i<>-251 then
  16. halt(1);
  17. end.
  18. {$endif}