summaryrefslogtreecommitdiffstats
path: root/libacc/tests/data/comma.c
diff options
context:
space:
mode:
Diffstat (limited to 'libacc/tests/data/comma.c')
-rw-r--r--libacc/tests/data/comma.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/libacc/tests/data/comma.c b/libacc/tests/data/comma.c
deleted file mode 100644
index 496944c..0000000
--- a/libacc/tests/data/comma.c
+++ /dev/null
@@ -1,35 +0,0 @@
-int testReturn() {
- return 10, 20, 30;
-}
-
-int testArg(int a) {
- return a;
-}
-
-void testComma() {
- int a;
- 0, a = 10,20;
- printf("statement: %d\n", a);
- a = 1;
- if (a = 0, 1) {
- printf("if: a = %d\n", a);
- }
- int b = 0;
- a = 10;
- while(b++,a--) {}
- printf("while: b = %d\n", b);
- b = 0;
- for(b++,a = 0;b++, a < 10; b++, a++) {}
- printf("for: b = %d\n", b);
- b = testReturn();
- printf("return: %d\n", b);
- b = testArg((a,12));
- printf("arg: %d\n", b);
-}
-
-
-
-int main() {
- testComma();
- return 0;
-}