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:
Art Yerkes 2004-10-17 08:39:52 +00:00
commit 30cdeb143a

View 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