Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / regression / qct / 0078-dirifexpr.c
blob2d17e923bf7d06dcd4c8872ae22f21de51810b59
2 #if (-2) != -2
3 #error fail
4 #endif
6 #if (0 || 0) != 0
7 #error fail
8 #endif
10 #if (1 || 0) != 1
11 #error fail
12 #endif
14 #if (1 || 1) != 1
15 #error fail
16 #endif
18 #if (0 && 0) != 0
19 #error fail
20 #endif
22 #if (1 && 0) != 0
23 #error fail
24 #endif
26 #if (0 && 1) != 0
27 #error fail
28 #endif
30 #if (1 && 1) != 1
31 #error fail
32 #endif
34 #if (0xf0 | 1) != 0xf1
35 #error fail
36 #endif
38 #if (0xf0 & 1) != 0
39 #error fail
40 #endif
42 #if (0xf0 & 0x1f) != 0x10
43 #error fail
44 #endif
46 #if (1 ^ 1) != 0
47 #error fail
48 #endif
50 #if (1 == 1) != 1
51 #error fail
52 #endif
54 #if (1 == 0) != 0
55 #error fail
56 #endif
58 #if (1 != 1) != 0
59 #error fail
60 #endif
62 #if (0 != 1) != 1
63 #error fail
64 #endif
66 #if (0 > 1) != 0
67 #error fail
68 #endif
70 #if (0 < 1) != 1
71 #error fail
72 #endif
74 #if (0 > -1) != 1
75 #error fail
76 #endif
78 #if (0 < -1) != 0
79 #error fail
80 #endif
82 #if (0 >= 1) != 0
83 #error fail
84 #endif
86 #if (0 <= 1) != 1
87 #error fail
88 #endif
90 #if (0 >= -1) != 1
91 #error fail
92 #endif
94 #if (0 <= -1) != 0
95 #error fail
96 #endif
98 #if (0 < 0) != 0
99 #error fail
100 #endif
102 #if (0 <= 0) != 1
103 #error fail
104 #endif
106 #if (0 > 0) != 0
107 #error fail
108 #endif
110 #if (0 >= 0) != 1
111 #error fail
112 #endif
114 #if (1 << 1) != 2
115 #error fail
116 #endif
118 #if (2 >> 1) != 1
119 #error fail
120 #endif
122 #if (2 + 1) != 3
123 #error fail
124 #endif
126 #if (2 - 3) != -1
127 #error fail
128 #endif
130 #if (2 * 3) != 6
131 #error fail
132 #endif
134 #if (6 / 3) != 2
135 #error fail
136 #endif
138 #if (7 % 3) != 1
139 #error fail
140 #endif
142 #if (2+2*3+2) != 10
143 #error fail
144 #endif
146 #if ((2+2)*(3+2)) != 20
147 #error fail
148 #endif
150 #if (2 + 2 + 2 + 2 == 2 + 2 * 3) != 1
151 #error fail
152 #endif
154 #if (1,2,3) != 3
155 #error fail
156 #endif
158 #if (0 ? 1 : 3) != 3
159 #error fail
160 #endif
162 #if (1 ? 3 : 1) != 3
163 #error fail
164 #endif
167 main()
169 return 0;