fpc/tests/test/jvm/tbyte.pp
Jonas Maebe 71068ae7eb * made the tests Android-compatible (use the androidr14 unit instead
of the jdk15 unit in that case)
  * adjusted testall.sh script so it can also be used to test class
    files compiled for Android (still with the JVM though)

git-svn-id: branches/jvmbackend@19835 -
2011-12-12 20:34:02 +00:00

20 lines
272 B
ObjectPascal

program tbyte;
{$mode delphi}
uses
{$ifdef java}jdk15{$else}androidr14{$endif};
function test: longint;
var
a : longword;
begin
a := 123456789;
result := JLInteger.Create(Byte(a)).intValue;
end;
begin
if test<>21 then
raise JLException.create('boe!');
end.