summaryrefslogtreecommitdiff
path: root/Examples/test-suite/python/return_const_value_runme.py
blob: 809eed97ad005185534b1d5abf6fab765c207f5d (plain)
1
2
3
4
5
6
7
8
9
10
import return_const_value
import sys

p = return_const_value.Foo_ptr_getPtr()
if (p.getVal() != 17):
    raise RuntimeError("Runtime test1 failed. p.getVal()={}".format(p.getVal()))

p = return_const_value.Foo_ptr_getConstPtr()
if (p.getVal() != 17):
    raise RuntimeError("Runtime test2 failed. p.getVal()={}".format(p.getVal()))