enums and ints are compatible
This commit is contained in:
@ -590,6 +590,8 @@ enum test {
|
||||
void enum_test()
|
||||
{
|
||||
enum test b1;
|
||||
/* The following should give no warning */
|
||||
int *p = &b1;
|
||||
printf("enum:\n%d %d %d %d %d %d\n",
|
||||
E0, E1, E2, E3, E4, E5);
|
||||
b1 = 1;
|
||||
|
||||
Reference in New Issue
Block a user