summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2015-01-08 13:20:37 +1300
committerOlly Betts <olly@survex.com>2015-01-08 13:26:39 +1300
commit8fbdd75a0b1a4f4728c430d4888bdca7b25427f8 (patch)
tree33280274b4cbc639c75e52095ec75f2648fa1a80
parentce90ff6a77e32d97670eb6bc97b114b84af9dc4c (diff)
downloadswig-8fbdd75a0b1a4f4728c430d4888bdca7b25427f8.tar.gz
Add test coverage for unterminated %{ ... %} block
-rw-r--r--Examples/test-suite/errors/pp_unterminated_block.i5
-rw-r--r--Examples/test-suite/errors/pp_unterminated_block.stderr1
2 files changed, 6 insertions, 0 deletions
diff --git a/Examples/test-suite/errors/pp_unterminated_block.i b/Examples/test-suite/errors/pp_unterminated_block.i
new file mode 100644
index 000000000..99f5f0bc2
--- /dev/null
+++ b/Examples/test-suite/errors/pp_unterminated_block.i
@@ -0,0 +1,5 @@
+%module xxx
+
+%{
+int foo(int x);
+
diff --git a/Examples/test-suite/errors/pp_unterminated_block.stderr b/Examples/test-suite/errors/pp_unterminated_block.stderr
new file mode 100644
index 000000000..03c16a45f
--- /dev/null
+++ b/Examples/test-suite/errors/pp_unterminated_block.stderr
@@ -0,0 +1 @@
+pp_unterminated_block.i:3: Error: Unterminated %{ ... %} block