commit 6c7885a58e1d1202fbad71e09d423f8d637e25f8
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Sat Aug 15 22:51:41 2015 +0200
Commit:     Roberto E. Vargas Caballero <[email protected]>
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
@@ -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;
+}

Reply via email to