shithub: scc

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