shithub: scc

ref: 4e16556fa4948d8dd822f7ed31d4e367514f7182
dir: /cc1/tests/test035.c/

View raw version

/*
name: TEST035
description: Basic test for enumerations
output:

*/

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 x;
}