git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10344 626c5289-ae23-0410-ae9c-e8d60b6d4f22
20 lines
244 B
Python
20 lines
244 B
Python
from li_boost_shared_ptr_bits import *
|
|
|
|
def check(nd):
|
|
nd.i = 200
|
|
i = nd.i
|
|
|
|
try:
|
|
nd.notexist = 100
|
|
passed = 0
|
|
except:
|
|
passed = 1
|
|
|
|
if not passed:
|
|
raise "Test failed"
|
|
|
|
nd = NonDynamic()
|
|
check(nd)
|
|
b = boing(nd)
|
|
check(b)
|
|
|