* enhance check

This commit is contained in:
pierre 2003-02-11 11:58:31 +00:00
parent 3ccb3973d3
commit 168690c833

View File

@ -1,7 +1,19 @@
function dummy : longint;
begin
dummy:=1;
end;
var
x:function:longint;
x2:function:longint;
y:pointer absolute x;
y2:pointer absolute x2;
begin
if y<>nil then
halt(1);
x2:=@dummy;
if (y<>nil) or (y2<>pointer(@dummy)) then
begin
Writeln('Wrong code generated for absolute to procvarsmy');
halt(1);
end;
end.