RVBTCC/test/enum.c
2024-12-12 23:21:34 +08:00

8 lines
130 B
C

enum {
A, B, C = -B, D, E = +1, F,
};
int main() {
return A + B + C + D + E + F;
// 0 + 1 + -1 + 0 + 1 + 2 = 3
}