shithub: scc

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

View raw version
/*
name: TEST011
description: Basic test for goto
error:
test011.c:14: warning: 'foo' defined but not used
test011.c:14: warning: 'start' defined but not used

output:
F1	I	E
G2	F1	main
{
\
L3
	j	L4
	r	#I1
L5
	r	#I0
L4
L6
	j	L5
	r	#I1
}

*/

#line 1

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