Add testcase
This commit is contained in:
parent
e31de2aebb
commit
88f227b5da
2 changed files with 13 additions and 0 deletions
|
|
@ -649,6 +649,7 @@ CPP17_TEST_BROKEN = \
|
||||||
|
|
||||||
# C++20 test cases.
|
# C++20 test cases.
|
||||||
CPP20_TEST_CASES += \
|
CPP20_TEST_CASES += \
|
||||||
|
cpp20_lambda_template \
|
||||||
cpp20_spaceship_operator \
|
cpp20_spaceship_operator \
|
||||||
|
|
||||||
# Broken C++20 test cases.
|
# Broken C++20 test cases.
|
||||||
|
|
|
||||||
12
Examples/test-suite/cpp20_lambda_template.i
Normal file
12
Examples/test-suite/cpp20_lambda_template.i
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
%module cpp20_lambda_template
|
||||||
|
|
||||||
|
// We just want to test that SWIG doesn't choke parsing this so suppress:
|
||||||
|
// Warning 340: Lambda expressions and closures are not fully supported yet.
|
||||||
|
%warnfilter(WARN_CPP11_LAMBDA);
|
||||||
|
|
||||||
|
%include <std_vector.i>
|
||||||
|
|
||||||
|
%inline %{
|
||||||
|
#include <vector>
|
||||||
|
auto templated_lambda = []<typename T>(std::vector<T> t){};
|
||||||
|
%}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue