fpc/tests/tbs/tb0062.pp
pierre 5fc4257482 * range check explicitly disabled
git-svn-id: trunk@6537 -
2007-02-18 00:25:31 +00:00

16 lines
332 B
ObjectPascal

{ Old file: tbs0068.pp }
{ Shows incorrect type of ofs() OK 0.99.1 (PFV and FK) }
{ As l is only a smallint, this
test will almost always
trigger a range check error,
disable range check explicitly }
{$R-}
var
p : pointer;
l : smallint;
begin
l:=Ofs(p); { Ofs returns a pointer type !? }
end.