1 | #include <assert.h> |
---|---|
2 | |
3 | int div(int numerator, int denominator) |
4 | { |
5 | return numerator / denominator; |
6 | } |
7 | |
8 | void div_test() |
9 | { |
10 | int i = 0; |
11 | for (i = 0; i < 2; ++i) |
12 | assert(div(2 * i, i) == 2); |
13 | } |
14 | |
15 | int do_nothing() |
16 | { |
17 | unsigned int i = 0; |
18 | |
19 | int k = 100; |
20 | int j = k + 1; |
21 | |
22 | return j; |
23 | } |
24 |