Implement inc/dec in a more lval-friendly way.
diff --git a/libacc/tests/test.py b/libacc/tests/test.py
index 2a20696..eafe442 100644
--- a/libacc/tests/test.py
+++ b/libacc/tests/test.py
@@ -287,6 +287,15 @@
self.compileCheck(["-R", "data/floatdouble.c"], """Executing compiled code:
result: 0""", """0.002 0.1 10""")
+ def testIncDec(self):
+ self.compileCheck(["-R", "data/inc.c"], """Executing compiled code:
+0
+1
+2
+1
+result: 0
+""","""""")
+
def testIops(self):
self.compileCheck(["-R", "data/iops.c"], """Executing compiled code:
result: 0""", """Literals: 1 -1