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

f = Foo()
b = Bar(f)
s = Spam(b)
g = Grok(b)

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

g.x = 4
if g.getx() != 4:
    raise RuntimeError