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

@ -406,7 +406,8 @@ CPP0X_TEST_CASES = \
cpp0x_static_assert \
cpp0x_template_explicit \
cpp0x_thread_local \
cpp0x_uniform_initialization
cpp0x_uniform_initialization \
cpp0x_alternate_function_syntax
# cpp0x_smart_pointers # not supported by standard library yet
# cpp0x_constexpr # not supported by any compilers yet

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;
}
%}