Add testcase

This commit is contained in:
Olly Betts 2022-07-27 09:30:39 +12:00
commit 88f227b5da
2 changed files with 13 additions and 0 deletions

View file

@ -649,6 +649,7 @@ CPP17_TEST_BROKEN = \
# C++20 test cases.
CPP20_TEST_CASES += \
cpp20_lambda_template \
cpp20_spaceship_operator \
# Broken C++20 test cases.

View 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){};
%}