100% coverage

This commit is contained in:
Yaossg 2024-12-24 15:00:51 +08:00
parent 49ed7c5df5
commit 92f4b4f561
52 changed files with 143 additions and 48 deletions

17
test/operator/short.c Normal file
View file

@ -0,0 +1,17 @@
int printf(char* format, ...);
int f(int i) {
printf("f(%d)\n", i);
return i % 2;
}
int main() {
1 && f(1);
0 && f(2);
1 || f(3);
0 || f(4);
1 ? f(5) : f(6);
0 ? f(7) : f(8);
1 && f(9) || f(10);
0 && f(11) || f(12);
}