tcnvptr.pp 185 B

123456789101112131415
  1. { %opt=-Sew }
  2. var
  3. p : pointer;
  4. b : byte;
  5. w : word;
  6. a : array[0..10] of char;
  7. begin
  8. b:=1;
  9. w:=1;
  10. p:=@a;
  11. // This should work without warnings
  12. inc(p,b);
  13. inc(p,w);
  14. end.