mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 10:49:09 +02:00
* enhance check
This commit is contained in:
parent
3ccb3973d3
commit
168690c833
@ -1,7 +1,19 @@
|
|||||||
|
|
||||||
|
function dummy : longint;
|
||||||
|
begin
|
||||||
|
dummy:=1;
|
||||||
|
end;
|
||||||
|
|
||||||
var
|
var
|
||||||
x:function:longint;
|
x:function:longint;
|
||||||
|
x2:function:longint;
|
||||||
y:pointer absolute x;
|
y:pointer absolute x;
|
||||||
|
y2:pointer absolute x2;
|
||||||
begin
|
begin
|
||||||
if y<>nil then
|
x2:=@dummy;
|
||||||
halt(1);
|
if (y<>nil) or (y2<>pointer(@dummy)) then
|
||||||
|
begin
|
||||||
|
Writeln('Wrong code generated for absolute to procvarsmy');
|
||||||
|
halt(1);
|
||||||
|
end;
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user