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

@ -3001,7 +3001,7 @@ c_decl : storage_class type declarator initializer c_decl_tail {
/* Alternate function syntax introduced in C++0x:
auto funcName(int x, int y) -> int; */
| storage_class AUTO declarator ARROW cpp_alternate_rettype initializer c_decl_tail {
/* $$ = new_node("cdecl");
$$ = new_node("cdecl");
if ($6.qualifier) SwigType_push($3.type,$6.qualifier);
Setattr($$,"type",$5);
Setattr($$,"storage",$1);
@ -3051,7 +3051,7 @@ c_decl : storage_class type declarator initializer c_decl_tail {
}
} else {
set_nextSibling($$,$7);
} */
}
}
;