shithub: scc

ref: 022532e3e74a94ff9a194378c5a9f7a4904d82d3
dir: /cc1/tests/test007.c/

View raw version
/* See LICENSE file for copyright and license details. */

/*
name: TEST007
description: basic while test
error:
output:
G2	I	F	"main
{
\
A3	I	"x
	A3	#IA	:I
	j	L6
	e
L4
	A3	A3	#I1	-I	:I
L6
	y	L4	A3	#I0	!I
	b
L5
	h	A3
}
*/

int
main()
{
	int x;

	x = 10;
	while (x)
		x = x - 1;
	return x;
}