1 (* RUN: cp %s %T/ext_exc.ml
2 * RUN: %ocamlc -g -warn-error A -package llvm.bitreader -linkpkg %T/ext_exc.ml -o %t
4 * RUN: %ocamlopt -g -warn-error A -package llvm.bitreader -linkpkg %T/ext_exc.ml -o %t
9 let context = Llvm.global_context ()
11 (* this used to crash, we must not use 'external' in .mli files, but 'val' if we
12 * want the let _ bindings executed, see http://caml.inria.fr/mantis/view.php?id=4166 *)
15 ignore (Llvm_bitreader.get_module context (Llvm.MemoryBuffer.of_stdin ()))
17 Llvm_bitreader.Error _ -> ();;
20 ignore (Llvm.MemoryBuffer.of_file "/path/to/nonexistent/file")
22 Llvm.IoError _ -> ();;