summaryrefslogtreecommitdiffstats
path: root/libacc/tests/data
diff options
context:
space:
mode:
authorJack Palevich <jackpal@google.com>2009-07-29 10:28:18 -0700
committerJack Palevich <jackpal@google.com>2009-07-29 10:28:18 -0700
commitddf7c9c14184acffe5ac33d06389cf733cfe11da (patch)
treeb60fb8d0f963df5166a6fdb7f97e35715afc5cec /libacc/tests/data
parent7fcdf1c5f8f25228bf348be9360594679329616f (diff)
downloadsystem_core-ddf7c9c14184acffe5ac33d06389cf733cfe11da.zip
system_core-ddf7c9c14184acffe5ac33d06389cf733cfe11da.tar.gz
system_core-ddf7c9c14184acffe5ac33d06389cf733cfe11da.tar.bz2
Implement inc/dec in a more lval-friendly way.
Diffstat (limited to 'libacc/tests/data')
-rw-r--r--libacc/tests/data/inc.c10
1 files changed, 10 insertions, 0 deletions
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;
+}