ocaml/testsuite/tests/warnings/w51_bis.ml

17 lines
277 B
OCaml

(* TEST
flags = "-w A"
* setup-ocamlc.byte-build-env
** ocamlc.byte
compile_only = "true"
*** check-ocamlc.byte-output
*)
let rec foldl op acc = function
[] -> acc
| x :: xs ->
try (foldl [@tailcall]) op (op x acc) xs
with Not_found -> assert false