smarter and error test
This commit is contained in:
parent
bf7f456967
commit
49ed7c5df5
37 changed files with 83 additions and 36 deletions
8
test/basic/enum.c
Normal file
8
test/basic/enum.c
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue