mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-24 13:33:37 +02:00
f03bb5d046
This -warn-error flag invariably gets into release tarballs and breaks builds on distributions that run tests as a part of release process. The OCaml binding tests are especially critical, since they often expose lingering toolchain bugs, and so it is replaced with -w +A (equivalent to -Wall). llvm-svn: 242550
23 lines
705 B
OCaml
23 lines
705 B
OCaml
(* RUN: cp %s %T/ext_exc.ml
|
|
* RUN: %ocamlc -g -w +A -package llvm.bitreader -linkpkg %T/ext_exc.ml -o %t
|
|
* RUN: %t
|
|
* RUN: %ocamlopt -g -w +A -package llvm.bitreader -linkpkg %T/ext_exc.ml -o %t
|
|
* RUN: %t
|
|
* XFAIL: vg_leak
|
|
*)
|
|
|
|
let context = Llvm.global_context ()
|
|
|
|
(* this used to crash, we must not use 'external' in .mli files, but 'val' if we
|
|
* want the let _ bindings executed, see http://caml.inria.fr/mantis/view.php?id=4166 *)
|
|
let _ =
|
|
try
|
|
ignore (Llvm_bitreader.get_module context (Llvm.MemoryBuffer.of_stdin ()))
|
|
with
|
|
Llvm_bitreader.Error _ -> ();;
|
|
let _ =
|
|
try
|
|
ignore (Llvm.MemoryBuffer.of_file "/path/to/nonexistent/file")
|
|
with
|
|
Llvm.IoError _ -> ();;
|