shithub: scc

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