Issue 38: c-to-c: postfix -- behavior
diff --git a/examples/tests/test_c-to-c.py b/examples/tests/test_c-to-c.py
index 83cc099..f9f9aa3 100644
--- a/examples/tests/test_c-to-c.py
+++ b/examples/tests/test_c-to-c.py
@@ -65,6 +65,17 @@
def test_initlist(self):
self._assert_ctoc_correct('int arr[] = {1, 2, 3};')
+ def test_exprs(self):
+ self._assert_ctoc_correct('''
+ int main(void)
+ {
+ int a;
+ int b = a++;
+ int c = ++a;
+ int d = a--;
+ int e = --a;
+ }''')
+
def test_statements(self):
self._assert_ctoc_correct(r'''
int main() {