mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-10 17:57:58 +02:00
* fixed runtime
git-svn-id: trunk@1490 -
This commit is contained in:
parent
252d90b691
commit
fb6d17fb21
@ -1,16 +1,22 @@
|
||||
{$mode delphi}
|
||||
{$ifdef fpc}{$mode delphi}{$endif}
|
||||
type
|
||||
tprocedure = procedure;
|
||||
pprocedure = ^tprocedure;
|
||||
|
||||
var
|
||||
l : longint;
|
||||
l2 : tprocedure;
|
||||
|
||||
function _f1 : plongint;
|
||||
begin
|
||||
result:=@l;
|
||||
end;
|
||||
|
||||
function _f2 : pprocedure;
|
||||
begin
|
||||
result:=@@l2;
|
||||
end;
|
||||
|
||||
var
|
||||
f1 : function : plongint;
|
||||
f2 : function : pprocedure;
|
||||
@ -21,6 +27,8 @@ procedure p;
|
||||
end;
|
||||
|
||||
begin
|
||||
f1:=_f1;
|
||||
f2:=_f2;
|
||||
f1^:=1;
|
||||
if l<>1 then
|
||||
halt(1);
|
||||
|
Loading…
Reference in New Issue
Block a user