fpc/tests/webtbs/tw1755.pp
fpc 790a4fe2d3 * log and id tags removed
git-svn-id: trunk@42 -
2005-05-21 09:42:41 +00:00

30 lines
430 B
ObjectPascal

var
err : boolean;
begin
err:=false;
write('assigned(nil): ');
if assigned(nil) then
err:=true
else
writeln('nil');
write('assigned(pointer(0)): ');
if assigned(pointer(0)) then
err:=true
else
writeln('nil');
write('assigned(pointer(10000)): ');
if assigned(pointer(10000)) then
writeln('assigned')
else
err:=true;
if err then
begin
writeln('err');
halt(1);
end;
end.