tprec7.pp 344 B

1234567891011121314151617181920
  1. Program PackedAssignTest;
  2. Uses uprec7;
  3. Var BRecord:TRecord;
  4. begin
  5. if SizeOf (BRecord) <> s then
  6. begin
  7. WriteLn ('failed 1');
  8. Halt
  9. end;
  10. BRecord := ARecord;
  11. with BRecord do
  12. if (a or not b or not c or not d or e or not f or g or h or not i)then
  13. begin
  14. WriteLn ('failed 2');
  15. Halt(1);
  16. end;
  17. WriteLn ('OK')
  18. end.