mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 21:59:32 +02:00

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 -
38 lines
428 B
ObjectPascal
38 lines
428 B
ObjectPascal
|
|
unit tval2;
|
|
|
|
{$mode fpc}
|
|
|
|
interface
|
|
|
|
{$ifdef cpujvm}
|
|
uses
|
|
{$ifdef java}jdk15{$else}androidr14{$endif};
|
|
|
|
{$macro on}
|
|
{$define write:=JLSystem.fout.print}
|
|
{$define writeln:=JLSystem.fout.println}
|
|
{$endif}
|
|
|
|
|
|
function TestAllval2 : boolean;
|
|
|
|
implementation
|
|
|
|
uses
|
|
tvalc;
|
|
|
|
type
|
|
IntegerType = dword;
|
|
|
|
{$i tval.inc}
|
|
|
|
|
|
function TestAllval2 : boolean;
|
|
begin
|
|
Writeln('Test val for dword type');
|
|
TestAllval2:=TestAll;
|
|
end;
|
|
|
|
end.
|