tw12076.pp 267 B

12345678910111213141516
  1. { %opt=-vw -Sew }
  2. { %norun }
  3. {$mode macpas}
  4. program nowarnings;
  5. var
  6. p: Pointer;
  7. offs: PtrInt;
  8. a: array[ 1..100] of integer;
  9. begin
  10. {$warnings on}
  11. p:= @a;
  12. offs:= SizeOf(integer);
  13. {$warnings off}
  14. PtrUInt(p):=PtrInt(p) + offs;
  15. {$warnings on}
  16. end.