shithub: scc

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