annotate tests/t24.c @ 136:59680a727e9d

Improve previous. Just in case we ever crash and reach cleanup() while processing an -include foo option, take the array entry for it out of the array to make sure it doesn't get freed twice. This case shouldn't be reachable, but it's better to be safe.
author David A. Holland
date Tue, 09 Jul 2013 13:38:43 -0400
parents de18d1ac7d34
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
94
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
1 #if 0
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
2 wrong
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
3 #endif
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
4
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
5 #if 1
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
6 right
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
7 #endif
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
8
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
9 #if -1
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
10 right
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
11 #endif
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
12
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
13 #if 0 + 0
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
14 wrong
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
15 #endif
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
16
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
17 #if 1 + 1
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
18 right
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
19 #endif
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
20
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
21 #if 1 - 1
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
22 wrong
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
23 #endif
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
24
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
25 #if -1 + 1
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
26 wrong
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
27 #endif
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
28
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
29 #if 3 - 2 - 1
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
30 wrong
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
31 #endif
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
32
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
33 #if 3 * 2 - 6
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
34 wrong
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
35 #endif
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
36
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
37 #if 6 - 2 * 3
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
38 wrong
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
39 #endif
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
40
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
41 #if 3 - 3 && 1
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
42 wrong
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
43 #endif
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
44
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
45 #if 3 - 3 || 0
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
46 wrong
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
47 #endif
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
48
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
49 #if 1 && 0
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
50 wrong
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
51 #endif
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
52
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
53 #if 0 && 1
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
54 wrong
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
55 #endif
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
56
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
57 #if 1 || 0
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
58 right
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
59 #endif
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
60
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
61 #if 0 || 1
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
62 right
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
63 #endif
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
64
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
65 #if (0 || 1) && (0 || 0)
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
66 wrong
de18d1ac7d34 add some testing of arithmetic
David A. Holland
parents:
diff changeset
67 #endif