shithub: scc

Download patch

ref: 6c7885a58e1d1202fbad71e09d423f8d637e25f8
parent: a86e1949ea1d59dcdf1e89ecdf0e2b53865efc46
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sat Aug 15 18:51:41 EDT 2015

Add baisc test for goto

--- /dev/null
+++ b/cc1/tests/test011.c
@@ -1,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;
+}