Added support for C++0x alternate function syntax.

Added testcase.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11414 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Matevz Jekovec 2009-07-17 11:17:01 +00:00
commit 03db5b4991
7 changed files with 53 additions and 16 deletions

View file

@ -0,0 +1,11 @@
%module cpp0x_alternate_function_syntax
%inline %{
struct SomeStruct {
auto FuncName(int x, int y) -> int;
};
auto SomeStruct::FuncName(int x, int y) -> int {
return x + y;
}
%}