]>
Commit | Line | Data |
---|---|---|
80ee600a | 1 | enum Months {Jan = 1, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, |
2 | Nov, Dec}; | |
3 | ||
4 | int main() | |
5 | { | |
6 | int i = Jan + Oct;/*should LClint complain that a enumerated*/ | |
7 | /*type was passed to the + operator? */ | |
8 | return i; | |
9 | } |