Merge branch 'ZackerySpytz-OCaml-class-example'
* ZackerySpytz-OCaml-class-example: [OCaml] Re-enable the using_protected unit test [OCaml] Add a class example
This commit is contained in:
commit
36846e9342
9 changed files with 166 additions and 7 deletions
|
|
@ -40,7 +40,6 @@ nested_directors \
|
|||
preproc_constants \
|
||||
smart_pointer_inherit \
|
||||
typedef_mptr \
|
||||
using_protected \
|
||||
|
||||
FAILING_C_TESTS = \
|
||||
enums \
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ open Swig
|
|||
open Using_protected
|
||||
|
||||
let f = new_FooBar C_void
|
||||
let _ = (invoke f) "x" (C_int 3)
|
||||
let _ = (invoke f) "[x]" (C_int 3)
|
||||
|
||||
let _ = if (invoke f) "blah" (C_int 4) <> (C_int 4) then
|
||||
raise (Failure "blah(int)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue