Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/test-suite/cpp11_alternate_function_syntax.i
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

19 lines
421 B
OpenEdge ABL

/* This testcase checks whether SWIG correctly uses the new alternate functions
declarations and definitions introduced in C++11. */
%module cpp11_alternate_function_syntax
%inline %{
struct SomeStruct {
int addNormal(int x, int y);
auto addAlternate(int x, int y) -> int;
};
auto SomeStruct::addAlternate(int x, int y) -> int {
return x + y;
}
int SomeStruct::addNormal(int x, int y) {
return x + y;
}
%}