tw34971.pp 317 B

12345678910111213141516171819202122232425
  1. type
  2. t1 = -1..1;
  3. t2 = -4..3;
  4. t3 = -3..4;
  5. type
  6. r1 = bitpacked record
  7. f: t1;
  8. end;
  9. r2 = bitpacked record
  10. f: t2;
  11. end;
  12. r3 = bitpacked record
  13. f: t3;
  14. end;
  15. begin
  16. if bitsizeof(r1.f)<>2 then
  17. halt(1);
  18. if bitsizeof(r2.f)<>3 then
  19. halt(2);
  20. if bitsizeof(r3.f)<>4 then
  21. halt(3);
  22. end.