diff options
author | Olly Betts <olly@survex.com> | 2022-02-01 15:57:01 +1300 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2022-02-01 16:00:12 +1300 |
commit | 9d06d4ac45c27751d94f9a040678bdaa48e892a3 (patch) | |
tree | 5e660b4f7ac0074c234510db5946e8e9f21df26d | |
parent | 3e019977c580fdfbb29b7ae60bed09358e9335e4 (diff) | |
download | swig-9d06d4ac45c27751d94f9a040678bdaa48e892a3.tar.gz |
[Tcl] Add changed file missed recent commit
This should have been in 6f4adde4b4dccbd31725aeda1c9e17b9178a5550
-rw-r--r-- | Examples/test-suite/li_std_vector.i | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Examples/test-suite/li_std_vector.i b/Examples/test-suite/li_std_vector.i index 33fb79720..c29fdff09 100644 --- a/Examples/test-suite/li_std_vector.i +++ b/Examples/test-suite/li_std_vector.i @@ -140,3 +140,13 @@ std::vector<std::string> RevStringVec (const std::vector<std::string> &In) return(result); } %} + +// regression test for Tcl typecheck bug with empty list fixed in 4.2.0 +%inline %{ +int sum(const std::vector<int> &v) { + return std::accumulate(v.begin(),v.end(),0); +} +int sum(int v) { + return v; +} +%} |