xref: /netbsd-src/external/bsd/tradcpp/dist/tests/t24.c (revision 31615c9617fab4df7f5e221552df7da87f14320d)
1*31615c96Sdholland #if 0
2*31615c96Sdholland wrong
3*31615c96Sdholland #endif
4*31615c96Sdholland 
5*31615c96Sdholland #if 1
6*31615c96Sdholland right
7*31615c96Sdholland #endif
8*31615c96Sdholland 
9*31615c96Sdholland #if -1
10*31615c96Sdholland right
11*31615c96Sdholland #endif
12*31615c96Sdholland 
13*31615c96Sdholland #if 0 + 0
14*31615c96Sdholland wrong
15*31615c96Sdholland #endif
16*31615c96Sdholland 
17*31615c96Sdholland #if 1 + 1
18*31615c96Sdholland right
19*31615c96Sdholland #endif
20*31615c96Sdholland 
21*31615c96Sdholland #if 1 - 1
22*31615c96Sdholland wrong
23*31615c96Sdholland #endif
24*31615c96Sdholland 
25*31615c96Sdholland #if -1 + 1
26*31615c96Sdholland wrong
27*31615c96Sdholland #endif
28*31615c96Sdholland 
29*31615c96Sdholland #if 3 - 2 - 1
30*31615c96Sdholland wrong
31*31615c96Sdholland #endif
32*31615c96Sdholland 
33*31615c96Sdholland #if 3 * 2 - 6
34*31615c96Sdholland wrong
35*31615c96Sdholland #endif
36*31615c96Sdholland 
37*31615c96Sdholland #if 6 - 2 * 3
38*31615c96Sdholland wrong
39*31615c96Sdholland #endif
40*31615c96Sdholland 
41*31615c96Sdholland #if 3 - 3 && 1
42*31615c96Sdholland wrong
43*31615c96Sdholland #endif
44*31615c96Sdholland 
45*31615c96Sdholland #if 3 - 3 || 0
46*31615c96Sdholland wrong
47*31615c96Sdholland #endif
48*31615c96Sdholland 
49*31615c96Sdholland #if 1 && 0
50*31615c96Sdholland wrong
51*31615c96Sdholland #endif
52*31615c96Sdholland 
53*31615c96Sdholland #if 0 && 1
54*31615c96Sdholland wrong
55*31615c96Sdholland #endif
56*31615c96Sdholland 
57*31615c96Sdholland #if 1 || 0
58*31615c96Sdholland right
59*31615c96Sdholland #endif
60*31615c96Sdholland 
61*31615c96Sdholland #if 0 || 1
62*31615c96Sdholland right
63*31615c96Sdholland #endif
64*31615c96Sdholland 
65*31615c96Sdholland #if (0 || 1) && (0 || 0)
66*31615c96Sdholland wrong
67*31615c96Sdholland #endif
68