shithub: scc

ref: f08eafe178160c3dea617d0dd28c50b04b998c8d
dir: /cc1/tests/test011.c/

View raw version
/* See LICENSE file for copyright and license details. */

/*
name: TEST011
description: Basic test for goto
error:
test011.c:13: warning: 'foo' defined but not used
test011.c:13: warning: 'start' defined but not used
output:
G2	I	F	"main
{
\
L3
	j	L4
	h	#I1
L5
	h	#I0
L4
L6
	j	L5
	h	#I1
}
*/

#line 1

int
main() {
	start:
		goto next;
		return 1;
	success:
		return 0;
	next:
	foo:
		goto success;
		return 1;
}