[hackers] [scc] Add baisc test for goto || Roberto E. Vargas Caballero
commit 6c7885a58e1d1202fbad71e09d423f8d637e25f8
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Sat Aug 15 22:51:41 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Sat Aug 15 22:51:41 2015 +0200
Add baisc test for goto
diff --git a/cc1/tests/test011.c b/cc1/tests/test011.c
new file mode 100644
index 0000000..6295d37
--- /dev/null
+++ b/cc1/tests/test011.c
_AT_@ -0,0 +1,34 @@
+/*
+name: TEST011
+description: Basic test for goto
+output:
+F1
+G1 F1 main
+{
+-
+L2
+ j L3
+ yI #I1
+L4
+ yI #I0
+L3
+L5
+ j L4
+ yI #I1
+}
+*/
+
+#line 1
+
+int
+main() {
+ start:
+ goto next;
+ return 1;
+ success:
+ return 0;
+ next:
+ foo:
+ goto success;
+ return 1;
+}
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:29 CEST