Runtime test for multimodule import.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6409 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e9160c8597
commit
30cdeb143a
1 changed files with 10 additions and 0 deletions
10
Examples/test-suite/ocaml/imports_runme.ml
Normal file
10
Examples/test-suite/ocaml/imports_runme.ml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
(* purpose: to receive the hello A method from Imports_a exposed through
|
||||
* a B object derived from A *)
|
||||
|
||||
open Swig
|
||||
open Imports_a
|
||||
open Imports_b
|
||||
let x = new_B C_void
|
||||
(* Tests conversion of x to a generic value *)
|
||||
let a = swig_val `unknown x
|
||||
let _ = (invoke x) "hello" C_void
|
||||
Loading…
Add table
Add a link
Reference in a new issue