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:
parent
63a7f06afb
commit
03db5b4991
7 changed files with 53 additions and 16 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
11
Examples/test-suite/cpp0x_alternate_function_syntax.i
Normal file
11
Examples/test-suite/cpp0x_alternate_function_syntax.i
Normal 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;
|
||||
}
|
||||
%}
|
||||
Loading…
Add table
Add a link
Reference in a new issue