shithub: scc

ref: db5082d4c59b6350e7ab271dd751c40fddc68eb9
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;
}