8 typedef union data_packet
20 data_packet dataPacket
;
24 switch(dataPacket
.t
.cmd
)
26 case READ_VERSION
: //error 20: Undefined identifier 'READ_VERSION'
27 //error 62: 'case' expression not constant. Statement ignored
35 enum foo_tag
{ e_foo
};
36 volatile unsigned char a
= e_foo
;
41 enum foo_tag
{ e_foo
}; //error 163: duplicate enum member 'e_foo'
42 //error 0: Duplicate symbol 'e_foo', symbol IGNORED
43 //error 51: typedef/enum 'foo_tag' duplicate. Previous definition Ignored
44 volatile unsigned char a
= e_foo
;