swig/Examples/test-suite/ocaml/using_protected_runme.ml
Zackery Spytz a851e0a9ac [OCaml] Re-enable the using_protected unit test
Use the [member-variable] syntax in using_protected_runme.ml as
required by the OCaml module's documentation and implementation.

Fix the return type for vec_write() in example.h in the OCaml stl
example.
2019-01-11 17:59:23 -07:00

8 lines
183 B
OCaml

open Swig
open Using_protected
let f = new_FooBar C_void
let _ = (invoke f) "[x]" (C_int 3)
let _ = if (invoke f) "blah" (C_int 4) <> (C_int 4) then
raise (Failure "blah(int)")