projects
/
external
/
swig.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
import source from 1.3.40
[external/swig.git]
/
Examples
/
test-suite
/
python
/
template_typedef_cplx4_runme.py
1
import string
2
from template_typedef_cplx4 import *
3
4
#
5
# this is OK
6
#
7
8
9
s = Sin()
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 = CSin()
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
#
24
# Here we fail
25
#
26
d = make_Identity_double()
27
my_func_r(d)
28
29
c = make_Identity_complex()
30
my_func_c(c)
31
32
33
34