/* Why does this work and why doesn't gcc atleast show a warning?
 * -- Andreas Henriksson, 2007-10-13
 */

#include <stdio.h>

int main(int argc, char **argv)
{
	enum test {
		foo = 1,
		bar = 2
	} mytest;

	mytest = 3;

	printf("test enum: %d\n", mytest);

	return 0;
	
}
