[hackers] [scc] Add basic while loop || Roberto E. Vargas Caballero
commit 96af781fb1b2977e7c357afa2b16b2c6d1620bb3
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Sat Aug 15 19:59:47 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Sat Aug 15 19:59:47 2015 +0200
Add basic while loop
diff --git a/cc1/tests/test007.c b/cc1/tests/test007.c
new file mode 100644
index 0000000..2684c86
--- /dev/null
+++ b/cc1/tests/test007.c
_AT_@ -0,0 +1,32 @@
+/*
+name: TEST007
+description: basic while test
+output:
+F1
+G1 F1 main
+{
+-
+A2 I x
+ A2 #IA :I
+ j L5
+ d
+L3
+ A2 A2 #I1 -I :I
+L5
+ j L3 A2 #I0 !I
+ b
+L4
+ yI A2
+}
+*/
+
+int
+main()
+{
+ int x;
+
+ x = 10;
+ while (x)
+ x = x - 1;
+ return x;
+}
Received on Sat Aug 15 2015 - 23:27:07 CEST
This archive was generated by hypermail 2.3.0
: Sat Aug 15 2015 - 23:36:20 CEST