tbyte.pp 234 B

12345678910111213141516171819
  1. program tbyte;
  2. {$mode delphi}
  3. uses
  4. jdk15;
  5. function test: longint;
  6. var
  7. a : longword;
  8. begin
  9. a := 123456789;
  10. result := JLInteger.Create(Byte(a)).intValue;
  11. end;
  12. begin
  13. if test<>21 then
  14. raise JLException.create('boe!');
  15. end.