import source from 1.3.40
[external/swig.git] / Examples / test-suite / python / smart_pointer_member_runme.py
1 from smart_pointer_member import *
2
3 f = Foo()
4 f.y = 1
5
6 if f.y != 1:
7   raise RuntimeError
8
9 b = Bar(f)
10 b.y = 2
11
12 if f.y != 2:
13   print f.y
14   print b.y
15   raise RuntimeError
16
17 if b.x != f.x:
18   raise RuntimeError
19
20 if b.z != f.z:
21   raise RuntimeError
22
23 if Foo.z == Bar.z:
24   raise RuntimeError
25
26
27
28
29
30