scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 6c7885a58e1d1202fbad71e09d423f8d637e25f8
parent a86e1949ea1d59dcdf1e89ecdf0e2b53865efc46
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat, 15 Aug 2015 22:51:41 +0200

Add baisc test for goto

Diffstat:
Acc1/tests/test011.c | 34++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+), 0 deletions(-)

diff --git a/cc1/tests/test011.c 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; +}