tb0212.pp 487 B

1234567891011121314151617181920212223242526272829
  1. { Old file: tbs0251.pp }
  2. { typed const are not aligned correctly OK 0.99.11 (PM) }
  3. uses erroru;
  4. const
  5. c : byte = 5;
  6. r : real = 3.4;
  7. var
  8. l : longint;
  9. cc : char;
  10. rr : real;
  11. begin
  12. l:=longint(@r);
  13. if (l mod 4)<>0 then
  14. begin
  15. Writeln('static const are not aligned properly !');
  16. error;
  17. end;
  18. cc:='d';
  19. l:=longint(@rr);
  20. if (l mod 4)<>0 then
  21. begin
  22. Writeln('static var are not aligned properly !');
  23. error;
  24. end;
  25. end.