100% coverage
This commit is contained in:
parent
49ed7c5df5
commit
92f4b4f561
52 changed files with 143 additions and 48 deletions
17
test/operator/short.c
Normal file
17
test/operator/short.c
Normal 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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue