From 8fbdd75a0b1a4f4728c430d4888bdca7b25427f8 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Thu, 8 Jan 2015 13:20:37 +1300 Subject: [PATCH] Add test coverage for unterminated %{ ... %} block --- Examples/test-suite/errors/pp_unterminated_block.i | 5 +++++ Examples/test-suite/errors/pp_unterminated_block.stderr | 1 + 2 files changed, 6 insertions(+) create mode 100644 Examples/test-suite/errors/pp_unterminated_block.i create mode 100644 Examples/test-suite/errors/pp_unterminated_block.stderr 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