tb0339.pp 341 B

123456789101112131415
  1. {$mode TP}
  2. uses ub0339;
  3. type
  4. r = packed record
  5. Foo : Boolean;
  6. Bar : (No, Yes);
  7. Baz : 0 .. 3;
  8. Qux : -1 .. 0;
  9. Fred : 1 .. 7
  10. end;
  11. begin
  12. Writeln ('AAA: Size of packed record r = ', SizeOf (r), ' bytes.');
  13. Writeln ('AAA: Size of packed record r2 = ', SizeOf (r2), ' bytes.');
  14. PrintSize;
  15. end.