solve possible seg. faults and directors #1080075

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6894 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-12-16 10:40:01 +00:00
commit e67b13b202
7 changed files with 28 additions and 24 deletions

View file

@ -7,6 +7,7 @@ class MyFoo(Foo):
class MyFoo2(Foo):
def ping(self):
return true
pass # error: should return a string
ok = 0
@ -31,10 +32,9 @@ b = launder(a)
try:
b.pong()
except TypeError, e:
ok = 1
except:
pass
ok = 1
if not ok:
raise RuntimeError