annotate tests/t28.c @ 127:a0a86380456e

fix for #if handling: Don't eval the control expression of the first #if of a block when already in a false block; it might not be valid. Reported by Baptiste Daroussin.
author David A. Holland
date Wed, 12 Jun 2013 10:52:56 -0400
parents cb08e397ce7b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
126
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
1 #if 1
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
2 . right
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
3
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
4 # if 1
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
5 .. right
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
6 # elif 1
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
7 .. wrong
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
8 # elif 0
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
9 .. wrong
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
10 # else
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
11 .. wrong
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
12 # endif
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
13
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
14 #elif 1
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
15 . wrong
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
16
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
17 # if 1
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
18 .. wrong
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
19 # elif 1
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
20 .. wrong
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
21 # elif 0
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
22 .. wrong
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
23 # else
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
24 .. wrong
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
25 # endif
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
26
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
27 #elif 0
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
28 . wrong
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
29
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
30 # if 1
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
31 .. wrong
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
32 # elif 1
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
33 .. wrong
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
34 # elif 0
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
35 .. wrong
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
36 # else
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
37 .. wrong
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
38 # endif
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
39
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
40 #else
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
41 . wrong
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
42
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
43 # if 1
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
44 .. wrong
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
45 # elif 1
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
46 .. wrong
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
47 # elif 0
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
48 .. wrong
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
49 # else
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
50 .. wrong
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
51 # endif
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
52
cb08e397ce7b Test nested ifs.
David A. Holland
parents:
diff changeset
53 #endif