/tags/rel-1-3-25/SWIG/Examples/test-suite/ocaml/varargs_runme.ml
OCaml | 11 lines | 7 code | 3 blank | 1 comment | 2 complexity | f44f03ae66be92f91a68aaf487ed8bef MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- (* Test case stolen from the python directory *)
- open Swig
- open Varargs
- let _ = if _test (C_string "Hello") <> (C_string "Hello") then
- raise (Failure "1")
- let f = new_Foo C_void
- let _ = if (invoke f) "test" (C_string "Hello") <> (C_string "Hello") then
- raise (Failure "2")