mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 07:09:23 +02:00
* add test for charray=nil
This commit is contained in:
parent
b49747a854
commit
7c22c8184b
@ -3,10 +3,11 @@ var
|
|||||||
pc : pchar;
|
pc : pchar;
|
||||||
begin
|
begin
|
||||||
a:='1';
|
a:='1';
|
||||||
|
if a=nil then
|
||||||
|
halt(1);
|
||||||
pc:=@a;
|
pc:=@a;
|
||||||
if pc='1' then
|
if pc<>'1' then
|
||||||
writeln('OK')
|
halt(1);
|
||||||
else
|
writeln('OK')
|
||||||
halt(1);
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user