~laney/ubuntu/quantal/swig2.0/guile-2.0

« back to all changes in this revision

Viewing changes to Examples/test-suite/go/template_typedef_cplx4_runme.go

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Landschoff
  • Date: 2010-12-19 18:25:59 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101219182559-8lh77o66bo890jwo
Tags: 2.0.1-1
* Merge new upstream release 2.0.1.
* Remove dependency on quilt and usage in debian/rules, the new source
  format will take care of that.
* Remove patch fix-cleaning.diff (applied upstream).
* Remove patch keep_docs.diff (applied upstream).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package main
 
2
 
 
3
import . "./template_typedef_cplx4"
 
4
 
 
5
func main() {
 
6
        // this is OK
 
7
 
 
8
 
 
9
        s := NewSin()
 
10
        s.Get_base_value()
 
11
        s.Get_value()
 
12
        s.Get_arith_value()
 
13
        My_func_r(s)
 
14
        Make_Multiplies_double_double_double_double(s, s)
 
15
 
 
16
        z := NewCSin()
 
17
        z.Get_base_value()
 
18
        z.Get_value()
 
19
        z.Get_arith_value()
 
20
        My_func_c(z)
 
21
        Make_Multiplies_complex_complex_complex_complex(z, z)
 
22
 
 
23
        // Here we fail
 
24
        d := Make_Identity_double()
 
25
        My_func_r(d)
 
26
 
 
27
        c := Make_Identity_complex()
 
28
        My_func_c(c)
 
29
}