spacepaste

  1.  
  2. let () =
  3. let f = open_out "bug-test" in
  4. let ff = Format.formatter_of_out_channel f in
  5. Format.fprintf ff "@[<2>{@,";
  6. for x = 0 to 57621086 do
  7. Format.fprintf ff "@[<2>[@,";
  8. let _ = List.fold_left (fun is_first o ->
  9. if not is_first then Format.fprintf ff ",@ ";
  10. Format.fprintf ff "%d" o;
  11. false
  12. ) true [1; 2; 3; 4; 5; 6; 7; 8; 9; 10] in ();
  13. Format.fprintf ff "@]@,]"
  14. done;
  15. Format.fprintf ff "@]@,}";
  16. Format.fprintf ff "@.";
  17. close_out f
  18.