One more lambda test using constexpr
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@13860 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
35458b4a5d
commit
5ada4e35d1
1 changed files with 1 additions and 0 deletions
|
|
@ -42,6 +42,7 @@ auto lambda14 = [] () throw () {};
|
|||
auto lambda15 = [] () mutable throw () {};
|
||||
auto lambda16 = [] { return thing; };
|
||||
auto lambda17 = [] { return thing; }();
|
||||
constexpr auto lambda18 = [] (int x, int y) mutable throw(int) { return x+y; };
|
||||
|
||||
int runLambda1() {
|
||||
return lambda1(5,6);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue