swig/Examples/test-suite/ocaml/valuewrapper_runme.ml
Zackery Spytz 8b083b4284 [OCaml] Runtime tests for overload_method, typedef_class and some others
Add runtime tests for overload_method, typedef_class,
typedef_inherit, typemap_arrays, typemap_delete, types_directive, and
valuewrapper.
2019-01-20 23:08:03 -07:00

8 lines
162 B
OCaml

open Swig
open Valuewrapper
let _ =
let x1 = new_Xi '(5) and y1 = new_YXi '() in
assert (y1 -> spam (x1) as int = 0);
assert (y1 -> spam () as int = 0)
;;