shithub: scc

ref: 8cd0cd7c7f5ae4003bcb9e95cd8e3f81a63d30a3
dir: /tests/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;
}