aboutsummaryrefslogtreecommitdiffstats
path: root/lcc/tst/incr.c
diff options
context:
space:
mode:
Diffstat (limited to 'lcc/tst/incr.c')
-rwxr-xr-xlcc/tst/incr.c39
1 files changed, 39 insertions, 0 deletions
diff --git a/lcc/tst/incr.c b/lcc/tst/incr.c
new file mode 100755
index 0000000..d3d6144
--- /dev/null
+++ b/lcc/tst/incr.c
@@ -0,0 +1,39 @@
+main() {}
+
+memchar() {
+ char x, *p;
+
+ &x, &p;
+ x = *p++;
+ x = *++p;
+ x = *p--;
+ x = *--p;
+}
+
+memint() {
+ int x, *p;
+
+ &x, &p;
+ x = *p++;
+ x = *++p;
+ x = *p--;
+ x = *--p;
+}
+
+regchar() {
+ register char x, *p;
+
+ x = *p++;
+ x = *++p;
+ x = *p--;
+ x = *--p;
+}
+
+regint() {
+ register int x, *p;
+
+ x = *p++;
+ x = *++p;
+ x = *p--;
+ x = *--p;
+}