fpc/tests/tbs/tb0189.pp
2000-11-30 22:38:14 +00:00

24 lines
389 B
ObjectPascal

{ Old file: tbs0223.pp }
{ wrong boolean evaluation in writeln OK 0.99.11 (PFV) }
uses
erroru;
var a:string;
begin
writeln('B:'='B:'); { debbuger evaluates this to FALSE }
if 'B:'='B:' then
writeln('OK')
else
error;
a:='A:';
inc(a[1]);
writeln(a='B:'); { TRUE }
if a='B:' then
writeln('OK')
else
error;
end.