tw4445.pp 461 B

123456789101112131415161718192021222324
  1. { %fail }
  2. { Source provided for Free Pascal Bug Report 4445 }
  3. { Submitted by "lito steel" on 2005-10-17 }
  4. { e-mail: [email protected] }
  5. { those are the definitions }
  6. const
  7. StackMax = 10;
  8. var
  9. Stack:array[1..StackMax] of double;
  10. StackTop: integer = 0;
  11. {in this procedure the compiler complains}
  12. procedure aAND;
  13. var a: double;
  14. begin
  15. a := Stack[StackTop];
  16. dec(StackTop);
  17. Stack[StackTop] := Stack[StackTop] and a;
  18. end;
  19. begin
  20. aand;
  21. end.