History log of /external/llvm/test/Bindings/Ocaml/ext_exc.ml
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0a248bf714f18b1cdcda5d7b811303c232d6e885 23-Aug-2013 Daniel Dunbar <daniel@zuster.org> [PR11606] ocaml bindings tests produce binaries in source dir

- Workaround for ocamlopt producing outputs adjacent to its source inputs, by
having the tests copy the inputs into temporary directories in the output
paths before building.

- Patch by edward-san.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189081 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/ext_exc.ml
78982611d8686976e7c329e10cb60eaaa64590e2 23-Dec-2010 Torok Edwin <edwintorok@gmail.com> XFAIL vg_leak the new test as the rest.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122517 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/ext_exc.ml
a156efdf71bc668093e31593713694cf076db895 23-Dec-2010 Torok Edwin <edwintorok@gmail.com> Fix OCaml bindings crash, PR8847.

See http://caml.inria.fr/mantis/view.php?id=4166
If we call only external functions from a module, then its 'let _' bindings
don't get executed, which means that the exceptions don't get registered for use
in the C code.
This in turn causes llvm_raise to call raise_with_arg() with a NULL pointer and
cause a segmentation fault.

The workaround is to declare all 'external' functions as 'val' in these .mli
files.

Also added a separate testcase (the testcase must call only external functions
for the bug to occur).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122497 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/ext_exc.ml