swig/Examples/test-suite/ocaml/varargs_runme.ml
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")