shithub: scc

ref: 0bab8ee83c31cd1512c33b85a3825e1cd87c9b85
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;
}