summaryrefslogtreecommitdiff
path: root/Examples/test-suite/python/smart_pointer_simple_runme.py
blob: 95b678aae473547db592829ecc3f114a9567117e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
from smart_pointer_simple 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