1 typedef enum { one, two, three } etype;
2 typedef enum { cero, uno, dos, tres } stype;
3 typedef enum _mtag { threem, four } mtype; /* 4. Enum three declared with members ... */
4 typedef enum _itag { siete } itype; /* 5. Enumerator member siete declared with inconsistent type: ... */
5 typedef struct _st { int a; int b; } st ;
6 typedef struct { int a; int b; } st2 ; /* 5. Structure st2 declared with fields ... */
15 y = a[one]; /* 6. Value a[] used before definition */
18 x = three; /* 7. Assignment of enum _mtag { three, four } to etype: x = three */
23 } /* 8. Missing case in switch: two */
38 case one: /* 9. Duplicate case in switch: one */
41 break; /* case in switch not in enum */
45 break; /* okay (unreachable case) */
47 } /* 10. Path with no return in function declared to return int */
51 enum { hasta, pasta, yummy } ;
53 enum { e1, e2 = e1, e3 = e2 } ;
60 void f5 (struct adsf s)