mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 10:48:30 +02:00
26 lines
421 B
ObjectPascal
26 lines
421 B
ObjectPascal
{ Old file: tbs0189.pp }
|
|
{ cant compare adresses of function variables !! As tbs0188 FPC syntax problem see source (PM) }
|
|
|
|
var m: procedure;
|
|
|
|
procedure test;
|
|
begin
|
|
end;
|
|
|
|
procedure test2;
|
|
begin
|
|
end;
|
|
|
|
begin
|
|
if @test <> @test2 then
|
|
writeln('different!')
|
|
else
|
|
writeln('error');
|
|
m:=@test;
|
|
|
|
{ here also the syntax was wrong !! }
|
|
{ @m <> @test have different types !! }
|
|
if m <> @test then
|
|
writeln('error');
|
|
end.
|