summaryrefslogtreecommitdiff
path: root/Examples/test-suite/python/smart_pointer_typedef_runme.py
blob: eee0537f409fe39fc251311b325bc551a1c3f7ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
from smart_pointer_typedef import *

f = Foo()
b = Bar(f)

b.x = 3
if b.getx() != 3:
    raise RuntimeError

fp = b.__deref__()
fp.x = 4
if fp.getx() != 4:
    raise RuntimeError