fpc/tests/webtbf/tw12075.pp
2008-11-07 20:00:06 +00:00

18 lines
241 B
ObjectPascal

{ %fail }
{ %opt=-Sew -vw-}
{$mode macpas}
program popwarnings;
var
p: Pointer;
offs: PtrInt;
a: array[ 1..100] of integer;
begin
{$warnings on}
p:= @a;
{$push}
{$warnings off}
{$pop}
PtrUInt(p):=PtrUInt(p) + offs;
end.