shithub: scc

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