| 1 | /* Used in enum.c test */ |
|---|---|
| 2 | |
| 3 | enum Color { |
| 4 | Red, |
| 5 | Green, |
| 6 | Blue |
| 7 | }; |
| 8 | |
| 9 | enum Shape { |
| 10 | Square, |
| 11 | Triangle = 17, |
| 12 | Rhombus, |
| 13 | Circle |
| 14 | }; |
| 15 | |
| 16 | enum Shape aRoundShape = Circle; |
| 17 |
| 1 | /* Used in enum.c test */ |
|---|---|
| 2 | |
| 3 | enum Color { |
| 4 | Red, |
| 5 | Green, |
| 6 | Blue |
| 7 | }; |
| 8 | |
| 9 | enum Shape { |
| 10 | Square, |
| 11 | Triangle = 17, |
| 12 | Rhombus, |
| 13 | Circle |
| 14 | }; |
| 15 | |
| 16 | enum Shape aRoundShape = Circle; |
| 17 |