summaryrefslogtreecommitdiff
path: root/testsuite/tests/warnings/w51_bis.ml
blob: bb5bcaac1a66a939f586502d5c463aee2eec3e43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
(* TEST

flags = "-w +A-70"

* 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