Răsfoiți Sursa

* add test for charray=nil

peter 22 ani în urmă
părinte
comite
7c22c8184b
1 a modificat fișierele cu 5 adăugiri și 4 ștergeri
  1. 5 4
      tests/tbs/tb0446.pp

+ 5 - 4
tests/tbs/tb0446.pp

@@ -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
-    writeln('OK')
-  else
-    halt(1);
+  if pc<>'1' then
+   halt(1);
+  writeln('OK')
 end.
 end.