summaryrefslogtreecommitdiff
path: root/Examples
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2017-03-10 23:48:32 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2017-03-10 23:48:32 +0000
commitf9fbaa5cb8799775656a59164573c354c762ca5e (patch)
treee63d16ea76fe0218fb020fc53d25af77647a9c07 /Examples
parentd851be2b7f98757b3c72d7fdac3c5c2441538aa6 (diff)
downloadswig-f9fbaa5cb8799775656a59164573c354c762ca5e.tar.gz
Another C++11 alternate function syntax test
Diffstat (limited to 'Examples')
-rw-r--r--Examples/test-suite/cpp11_alternate_function_syntax.i2
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; }