bug0184.pp 788 B

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