Add regression test for 6b6b360

Reported in issue#368 by clintonstimpson.
This commit is contained in:
Olly Betts 2015-03-28 11:26:13 +13:00
commit dba8d4a7ea
2 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,10 @@
%module xxx
/* Regression test for bug introduced in 3.0.4 and fixed in 3.0.6 - the '%std'
* here led to SWIG calling abort().
*/
%typemap(jstype) std::vector<std::string>, const %std::vector<std::string>&, std::vector<std::string>& "List<String>"
/* This used to give the rather cryptic "Syntax error in input(1)." prior to
* SWIG 3.0.4. This testcase checks that the improved message is actually
* issued.