Silence -Wunused-variable in release builds.
[llvm/stm8.git] / test / Bindings / Ocaml / ext_exc.ml
blobb4d2e6dc64141df56bc8fd1b9486bc64a8139f42
1 (* RUN: %ocamlopt -warn-error A llvm.cmxa llvm_bitreader.cmxa llvm_executionengine.cmxa %s -o %t
2 * RUN: %t </dev/null
3 * XFAIL: vg_leak
4 *)
5 let context = Llvm.global_context ()
6 (* this used to crash, we must not use 'external' in .mli files, but 'val' if we
7 * want the let _ bindings executed, see http://caml.inria.fr/mantis/view.php?id=4166 *)
8 let _ =
9 try
10 ignore (Llvm_bitreader.get_module context (Llvm.MemoryBuffer.of_stdin ()))
11 with
12 Llvm_bitreader.Error _ -> ();;
13 let _ =
14 try
15 ignore (Llvm.MemoryBuffer.of_file "/path/to/nonexistent/file")
16 with
17 Llvm.IoError _ -> ();;