tval.pp 630 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. program tval;
  2. {$ifdef cpujvm}
  3. {$macro on}
  4. {$define write:=JLSystem.fout.print}
  5. {$define writeln:=JLSystem.fout.println}
  6. {$endif}
  7. uses
  8. {$ifdef cpujvm}
  9. jdk15,
  10. {$endif}
  11. { longint type, short string }
  12. tval1,
  13. { dword type, short string }
  14. tval2,
  15. { int64 type, short string }
  16. tval3,
  17. { uint64 type, short string }
  18. tval4,
  19. { common variables and functions }
  20. tvalc;
  21. begin
  22. (*
  23. if (paramcount>0) and
  24. (paramstr(1)='verbose') then
  25. silent:=false;
  26. *)
  27. TestAllVal1;
  28. TestAllVal2;
  29. TestAllVal3;
  30. TestAllVal4;
  31. if HasErrors then
  32. begin
  33. Writeln('Test tval failed');
  34. Halt(1);
  35. end;
  36. end.