tw9054.pp 514 B

12345678910111213141516171819202122232425262728293031
  1. {$mode macpas}
  2. program FatalError_2006082312;
  3. type
  4. UInt16 = Word;
  5. UInt64 = QWord;
  6. CoreMidiPacket = packed record
  7. timeStamp: UInt64;
  8. length: UInt16;
  9. data: packed array [0..255] of byte
  10. end;
  11. procedure test(var gCoreMidiPacket: CoreMidiPacket);
  12. begin
  13. with gCoreMidiPacket do
  14. begin
  15. timeStamp := high(int64);
  16. length := $2345;
  17. end
  18. end;
  19. var
  20. gcmp: CoreMidiPacket;
  21. begin
  22. test(gcmp);
  23. if (gcmp.timestamp <> high(int64)) or
  24. (gcmp.length<>$2345) then
  25. halt(1);
  26. end.