1 (* RUN: %ocamlopt -warn-error A llvm.cmxa llvm_bitreader.cmxa llvm_executionengine.cmxa %s -o %t
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 *)
10 ignore
(Llvm_bitreader.get_module
context (Llvm.MemoryBuffer.of_stdin
()))
12 Llvm_bitreader.Error
_ -> ();;
15 ignore
(Llvm.MemoryBuffer.of_file
"/path/to/nonexistent/file")
17 Llvm.IoError
_ -> ();;