PageRenderTime 8ms CodeModel.GetById 2ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/python/return_const_value_runme.py

#
Python | 12 lines | 10 code | 2 blank | 0 comment | 2 complexity | e1cb6ce31d5ea7600dd3c28d939b7aab MD5 | raw file
 1import return_const_value
 2import sys
 3
 4p = return_const_value.Foo_ptr.getPtr()
 5if (p.getVal() != 17):
 6	print "Runtime test1 faild. p.getVal()=", p.getVal()
 7	sys.exit(1)
 8
 9p = return_const_value.Foo_ptr.getConstPtr()
10if (p.getVal() != 17):
11	print "Runtime test2 faild. p.getVal()=", p.getVal()
12	sys.exit(1)