tb0454.pp 640 B

123456789101112131415161718192021222324252627282930313233
  1. program tb0454;
  2. { reported on fpc-devel by Jesus Reyes <[email protected]> on 14 July 2003 }
  3. { as failing with 1.1 }
  4. {$mode objfpc}
  5. var
  6. a,b: integer;
  7. c,d,e,f: boolean;
  8. function Ok: boolean;
  9. begin
  10. result := ( a = b )
  11. and c = d
  12. and e = f;
  13. end;
  14. var
  15. r: boolean;
  16. begin
  17. a := 1;
  18. b := 2;
  19. c := false;
  20. d := true;
  21. e := false;
  22. f := true;
  23. r := Ok;
  24. if not r then
  25. begin
  26. writeln('error, result should be true');
  27. halt(1);
  28. end;
  29. end.