(* RUN: rm -rf %t && mkdir -p %t && cp %s %t/irreader.ml
* RUN: %ocamlc -g -w +A -package llvm.irreader -linkpkg %t/irreader.ml -o %t/executable
* RUN: %t/executable
* RUN: %ocamlopt -g -w +A -package llvm.irreader -linkpkg %t/irreader.ml -o %t/executable
* RUN: %t/executable
* XFAIL: vg_leak
*)
(* Note: It takes several seconds for ocamlopt to link an executable with
libLLVMCore.a, so it's better to write a big test than a bunch of
little ones. *)
let context = global_context (
(* Tiny unit test framework - really just to help find which line is busted *)
let print_checkpoints = false
if print_checkpoints then
prerr_endline ;
f (
let _ =
record_backtrace true
if not cond then failwith "insist"
(*===-- IR Reader ---------------------------------------------------------===*)
;
(*===-- Driver ------------------------------------------------------------===*)
let _ =
suite "irreader" test_irreader