* add test for charray=nil

This commit is contained in:
peter 2003-01-07 19:36:05 +00:00
parent b49747a854
commit 7c22c8184b

View File

@ -3,10 +3,11 @@ var
pc : pchar;
begin
a:='1';
if a=nil then
halt(1);
pc:=@a;
if pc='1' then
writeln('OK')
else
halt(1);
if pc<>'1' then
halt(1);
writeln('OK')
end.