~ubuntu-branches/ubuntu/hoary/swig1.3/hoary

« back to all changes in this revision

Viewing changes to Examples/test-suite/guile/overload_subtype_runme.scm

  • Committer: Bazaar Package Importer
  • Author(s): Thom May
  • Date: 2004-08-02 15:57:10 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040802155710-bm292q1d6x6tw7gc
Tags: 1.3.21-5ubuntu1
Fix linking for ruby, python, perl and tcl bindings

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
;; The SWIG modules have "passive" Linkage, i.e., they don't generate
 
2
;; Guile modules (namespaces) but simply put all the bindings into the
 
3
;; current module.  That's enough for such a simple test.
 
4
(dynamic-call "scm_init_overload_subtype_module" (dynamic-link "./liboverload_subtype.so"))
 
5
 
 
6
(if (not (= (spam (new-Foo)) 1))
 
7
    (error "foo"))
 
8
 
 
9
(if (not (= (spam (new-Bar)) 2))
 
10
    (error "bar"))
 
11
 
 
12
(exit 0)