Prechádzať zdrojové kódy

+ tests array of char = string

pierre 26 rokov pred
rodič
commit
b828ac251c
1 zmenil súbory, kde vykonal 5 pridanie a 0 odobranie
  1. 5 0
      tests/tbs/tbs0273.pp

+ 5 - 0
tests/tbs/tbs0273.pp

@@ -9,5 +9,10 @@ Begin
  S:=CharArray;
  WriteLn(S);         { * This is O.K. * }
  WriteLn(CharArray); { * GENERAL PROTECTION FAULT. * }
+ if CharArray<>'BUG?' then
+   begin
+     Writeln('Error comparing charaay to constant string');
+     Halt(1);
+   end;
 End.