shithub: scc

ref: 4ffe395a66f3b0d78ec53295a81536ed7f094a00
dir: /tests/execute/0056-enum.c/

View raw version

enum E {
	x,
	y = 2,
	z,
};

int
main()
{
	enum E e;

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