Implement inc/dec in a more lval-friendly way.
diff --git a/libacc/tests/data/inc.c b/libacc/tests/data/inc.c
new file mode 100644
index 0000000..eda3659
--- /dev/null
+++ b/libacc/tests/data/inc.c
@@ -0,0 +1,10 @@
+// Check integer operations
+
+int main() {
+    int a = 0;
+    printf("%d\n", a++);
+    printf("%d\n", a++);
+    printf("%d\n", a--);
+    printf("%d\n", a--);
+    return a;
+}
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