tw2311.pp 655 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. { %CPU=i386 }
  2. { %OPT=-O1 -CX }
  3. { Source provided for Free Pascal Bug Report 2311 }
  4. { Submitted by "Michael Brown" on 2003-01-06 }
  5. { e-mail: [email protected] }
  6. { modified by Pierre Muller to get a good check }
  7. {$goto on}
  8. program Kernel;
  9. procedure DisplayRAM;
  10. begin
  11. end;
  12. const
  13. passes : longint = 0;
  14. i : longint = 0;
  15. label
  16. end_label;
  17. begin
  18. inc(passes);
  19. if passes>1 then
  20. goto end_label;
  21. DisplayRAM;
  22. while true do
  23. begin
  24. asm
  25. nop
  26. end;
  27. inc(i);
  28. Writeln(i);
  29. if i > 10 then
  30. break;
  31. end;
  32. end_label:
  33. if passes<>1 then
  34. begin
  35. writeln('Error in test 2311');
  36. halt(1);
  37. end;
  38. end.