Enabled alternate function syntax and added runtime testcases.

Added support for null pointer constant introduced in C++0x.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11484 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Matevz Jekovec 2009-07-31 10:13:31 +00:00
commit a7e9a105d9
6 changed files with 60 additions and 10 deletions

View file

@ -0,0 +1,15 @@
import cpp0x_null_pointer_constant
a = cpp0x_null_pointer_constant.A()
if a._myA != None:
raise RuntimeError, ("cpp0x_null_pointer_constant: _myA should be None, but is ", a._myA)
b = cpp0x_null_pointer_constant.A()
if a._myA != b._myA:
raise RuntimeError, ("cpp0x_null_pointer_constant: a._myA should be the same as b._myA, but ", a._myA, "!=", b._myA)
a._myA = cpp0x_null_pointer_constant.A()
if a._myA == None:
raise RuntimeError, ("cpp0x_null_pointer_constant: _myA should be object, but is None")