diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2017-03-10 23:48:32 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2017-03-10 23:48:32 +0000 |
commit | f9fbaa5cb8799775656a59164573c354c762ca5e (patch) | |
tree | e63d16ea76fe0218fb020fc53d25af77647a9c07 /Examples | |
parent | d851be2b7f98757b3c72d7fdac3c5c2441538aa6 (diff) | |
download | swig-f9fbaa5cb8799775656a59164573c354c762ca5e.tar.gz |
Another C++11 alternate function syntax test
Diffstat (limited to 'Examples')
-rw-r--r-- | Examples/test-suite/cpp11_alternate_function_syntax.i | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Examples/test-suite/cpp11_alternate_function_syntax.i b/Examples/test-suite/cpp11_alternate_function_syntax.i index 84c1dd666..3e47bbafe 100644 --- a/Examples/test-suite/cpp11_alternate_function_syntax.i +++ b/Examples/test-suite/cpp11_alternate_function_syntax.i @@ -11,6 +11,8 @@ struct SomeStruct { auto addAlternateConstNoExcept(int x, int y) const noexcept -> int; auto addAlternateMemberPtrParm(int x, int (SomeStruct::*mp)(int, int)) -> int; auto addAlternateMemberPtrConstParm(int x, int (SomeStruct::*mp)(int, int) const) const -> int; + + virtual auto addFinal(int x, int y) const noexcept -> int final { return x + y; } }; int SomeStruct::addNormal(int x, int y) { return x + y; } |