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:
parent
e7fd659ae5
commit
a7e9a105d9
6 changed files with 60 additions and 10 deletions
16
Examples/test-suite/cpp0x_null_pointer_constant.i
Normal file
16
Examples/test-suite/cpp0x_null_pointer_constant.i
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/* This testcase checks whether Swig correctly treats the new nullptr_t
|
||||
constant introduced in C++0x.
|
||||
*/
|
||||
|
||||
%module cpp0x_null_pointer_constant
|
||||
|
||||
%inline %{
|
||||
#include <cstddef>
|
||||
|
||||
class A {
|
||||
public:
|
||||
A() : _myA(std::nullptr) { }
|
||||
|
||||
A *_myA;
|
||||
};
|
||||
%}
|
||||
Loading…
Add table
Add a link
Reference in a new issue