aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/python/return_const_value_runme.py
blob: 94710284064cb9ed4d089f74288a89e0f7398200 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import return_const_value
import sys

p = return_const_value.Foo_ptr_getPtr()
if (p.getVal() != 17):
    print "Runtime test1 faild. p.getVal()=", p.getVal()
    sys.exit(1)

p = return_const_value.Foo_ptr_getConstPtr()
if (p.getVal() != 17):
    print "Runtime test2 faild. p.getVal()=", p.getVal()
    sys.exit(1)