swig/SWIG/Examples/test-suite/ocaml/varargs_runme.ml
Art Yerkes ae635218f2 Added some tests to mimic the ones in the python directory. Working my
way through the alphabet.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4519 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-12 15:25:27 +00:00

10 lines
274 B
OCaml

(* Test case stolen from the python directory *)
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")