shithub: scc

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