mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-22 10:33:23 +00:00
7b9a628414
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). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242550 91177308-0d34-0410-b5e6-96231b3b80d8
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 _ -> ();;
|