mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-06 21:07:58 +02:00
26 lines
280 B
ObjectPascal
26 lines
280 B
ObjectPascal
{$mode macpas}
|
|
{$B-}
|
|
program test;
|
|
|
|
type
|
|
IntegerPtr = ^Integer;
|
|
|
|
var
|
|
gi: Integer;
|
|
|
|
procedure A( procedure pp( p: univ Pointer));
|
|
begin
|
|
pp( @gi)
|
|
end;
|
|
|
|
procedure B( p: IntegerPtr);
|
|
begin
|
|
if ( p = nil) or ( p^ <> 12345) then halt( 1)
|
|
end;
|
|
|
|
begin
|
|
gi := 12345;
|
|
A( B)
|
|
end.
|
|
|