Issue #116: Fix coord assignment to compound statements
diff --git a/tests/test_c_parser.py b/tests/test_c_parser.py
index 761d902..e32c49d 100755
--- a/tests/test_c_parser.py
+++ b/tests/test_c_parser.py
@@ -496,6 +496,15 @@
s4 = compound.block_items[3].init
self.assertTrue(isinstance(s4.args.exprs[1], ArrayRef))
+ def test_compound_statement(self):
+ e = """
+ void foo() {
+ }
+ """
+ compound = self.parse(e).ext[0].body
+ self.assertTrue(isinstance(compound, Compound))
+ self.assert_coord(compound, 2, '')
+
# The C99 compound literal feature
#
def test_compound_literals(self):