shithub: scc

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