tw12075.pp 269 B

123456789101112131415161718
  1. { %fail }
  2. { %opt=-Sew -vw-}
  3. {$mode macpas}
  4. program popwarnings;
  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. {$push}
  14. {$warnings off}
  15. {$pop}
  16. PtrUInt(p):=PtrUInt(p) + offs;
  17. end.