shithub: scc

ref: 0f0cbf03f9dcbee4dba981e29a7ea43d96e648e7
dir: /cc1/tests/test011.c/

View raw version
/*
name: TEST011
description: Basic test for goto
output:
test011.c:14: warning: 'foo' defined but not used
test011.c:14: warning: 'start' defined but not used
F1
G1	F1	main
{
-
L2
	j	L3
	y	#I1
L4
	y	#I0
L3
L5
	j	L4
	y	#I1
}
*/

#line 1

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