mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 14:49:33 +02:00
18 lines
241 B
ObjectPascal
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.
|