summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2015-03-28 11:26:13 +1300
committerOlly Betts <olly@survex.com>2015-03-28 11:26:13 +1300
commitdba8d4a7ea64da03369b1e984574d3a7761f2681 (patch)
tree0ceda8f1e9711535d38fb469d2dea0a931242d93
parent6b6b360093ada3a429a4cecf2ef8227139c0febc (diff)
downloadswig-dba8d4a7ea64da03369b1e984574d3a7761f2681.tar.gz
Add regression test for 6b6b360
Reported in issue#368 by clintonstimpson.
-rw-r--r--Examples/test-suite/errors/pp_unknowndirective.i5
-rw-r--r--Examples/test-suite/errors/pp_unknowndirective.stderr2
2 files changed, 6 insertions, 1 deletions
diff --git a/Examples/test-suite/errors/pp_unknowndirective.i b/Examples/test-suite/errors/pp_unknowndirective.i
index 659a997d3..b4e608b34 100644
--- a/Examples/test-suite/errors/pp_unknowndirective.i
+++ b/Examples/test-suite/errors/pp_unknowndirective.i
@@ -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.
diff --git a/Examples/test-suite/errors/pp_unknowndirective.stderr b/Examples/test-suite/errors/pp_unknowndirective.stderr
index d0d5e249f..2cc2377c7 100644
--- a/Examples/test-suite/errors/pp_unknowndirective.stderr
+++ b/Examples/test-suite/errors/pp_unknowndirective.stderr
@@ -1 +1 @@
-pp_unknowndirective.i:7: Error: Unknown directive '%remane'.
+pp_unknowndirective.i:12: Error: Unknown directive '%remane'.