fpc/tests/tbs0209.pp
1999-01-27 12:47:57 +00:00

18 lines
330 B
ObjectPascal

program bug0209;
{ problem with boolean expression mixing different boolean sizes }
var
b : boolean;
wb : wordbool;
lb : longbool;
begin
b:=true;
wb:=true;
lb:=true;
if (not b) or (not wb) or (not lb) then
begin
Writeln('Error with boolean expressions of different sizes');
Halt(1);
end;
end.