smarter and error test

This commit is contained in:
Yaossg 2024-12-24 11:31:50 +08:00
parent bf7f456967
commit 49ed7c5df5
37 changed files with 83 additions and 36 deletions

8
test/basic/enum.c Normal file
View file

@ -0,0 +1,8 @@
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
}