[OCaml] Fix the wrapmacro test

Add a typecheck typemap for size_t and const size_t &.

Add the const qualifier to the typemaps for primitive reference
types.

Add multiple runtime tests.
This commit is contained in:
Zackery Spytz 2019-02-17 01:41:59 -07:00
commit 10d62aecd5
10 changed files with 58 additions and 10 deletions

View file

@ -22,7 +22,7 @@ let _ =
let _ = _var_short (_createref_short (C_short 10)) in
assert (_value_short (_var_short '()) as int = 10);
let _ = _var_unsigned_short (_createref_unsigned_short (C_ushort 10)) in
assert (_value_unsigned_short (_var_unsigned_short '()) as int = 10);