shithub: scc

ref: 04f9a41d5d31d47cbdadc71b4637f19e880f94e2
dir: /tests/execute/0055-enum.c/

View raw version

enum E {
	x,
	y,
	z,
};

int
main()
{
	enum E e;

	if(x != 0)
		return 1;
	if(y != 1)
		return 2;
	if(z != 2)
		return 3;
	
	e = x;
	return e;
}