summaryrefslogtreecommitdiff
path: root/testsuite/tests/warnings/w51_bis.ml
blob: 660210627cf8e6561e9e3c115b94932d71852191 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
(* TEST_BELOW
(* Blank lines added here to preserve locations. *)







*)

let rec foldl op acc = function
    [] -> acc
    | x :: xs ->
        try (foldl [@tailcall]) op (op x acc) xs
        with Not_found -> assert false

(* TEST
 flags = "-w +A-70";
 setup-ocamlc.byte-build-env;
 compile_only = "true";
 ocamlc.byte;
 check-ocamlc.byte-output;
*)