tb0154.pp 900 B

12345678910111213141516171819202122232425262728
  1. { Old file: tbs0184.pp }
  2. { multiple copies of the same constant set are stored in executable OK 0.99.9 (PFV) }
  3. Program Bug0184;
  4. { multiple copies of the constant sets are stored in the assembler file when
  5. they are needed more than once}
  6. Var BSet: Set of Byte;
  7. SSet: Set of 0..31;
  8. b,c: byte;
  9. s: 0..31;
  10. Begin
  11. BSet := BSet + [b]; {creates a big, empty set}
  12. BSet := BSet + [c]; {creates another one}
  13. BSet := BSet + [3]; {creates a big set with element three set}
  14. BSet := BSet + [3]; {and antoher one}
  15. SSet := SSet + [5]; {creates a small set containing 5}
  16. SSet := SSet + [s]; {creates a small, empty set}
  17. SSet := SSet + [5]; {creates another small set containing 5}
  18. SSet := SSet + [s]; {creates another small, empty set}
  19. {BTW: small constant sets don't have to be stored seperately in the
  20. executable, as they're simple 32 bit constants, like longints!}
  21. End.