shithub: scc

ref: 6e9d1522e50e81ab34916a0cf02fd838db7771c8
dir: /tests/cc/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;
}