Browse Source

+ tests array of char = string

pierre 26 years ago
parent
commit
b828ac251c
1 changed files with 5 additions and 0 deletions
  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.