mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 13:39:36 +02:00
* add test for charray=nil
This commit is contained in:
parent
b49747a854
commit
7c22c8184b
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user