comparison tests/t28.c @ 126:cb08e397ce7b

Test nested ifs.
author David A. Holland
date Wed, 12 Jun 2013 10:51:10 -0400
parents
children
comparison
equal deleted inserted replaced
125:4e98022c3ce2 126:cb08e397ce7b
1 #if 1
2 . right
3
4 # if 1
5 .. right
6 # elif 1
7 .. wrong
8 # elif 0
9 .. wrong
10 # else
11 .. wrong
12 # endif
13
14 #elif 1
15 . wrong
16
17 # if 1
18 .. wrong
19 # elif 1
20 .. wrong
21 # elif 0
22 .. wrong
23 # else
24 .. wrong
25 # endif
26
27 #elif 0
28 . wrong
29
30 # if 1
31 .. wrong
32 # elif 1
33 .. wrong
34 # elif 0
35 .. wrong
36 # else
37 .. wrong
38 # endif
39
40 #else
41 . wrong
42
43 # if 1
44 .. wrong
45 # elif 1
46 .. wrong
47 # elif 0
48 .. wrong
49 # else
50 .. wrong
51 # endif
52
53 #endif