[InstCombine] Signed saturation patterns
[llvm-core.git] / test / Bindings / OCaml / transform_utils.ml
blobf951a0d9c4af20a060c71d2308ef6b6b5da8edb8
1 (* RUN: rm -rf %t && mkdir -p %t && cp %s %t/transform_utils.ml
2 * RUN: %ocamlc -g -w +A -package llvm.transform_utils -linkpkg %t/transform_utils.ml -o %t/executable
3 * RUN: %t/executable
4 * RUN: %ocamlopt -g -w +A -package llvm.transform_utils -linkpkg %t/transform_utils.ml -o %t/executable
5 * RUN: %t/executable
6 * XFAIL: vg_leak
7 *)
9 open Llvm
10 open Llvm_transform_utils
12 let context = global_context ()
14 let test_clone_module () =
15 let m = create_module context "mod" in
16 let m' = clone_module m in
17 if m == m' then failwith "m == m'";
18 if string_of_llmodule m <> string_of_llmodule m' then failwith "string_of m <> m'"
20 let () =
21 test_clone_module ()