repo.or.cz
/
sdcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git]
/
sdcc
/
support
/
regression
/
qct
/
0078-dirifexpr.c
blob
2d17e923bf7d06dcd4c8872ae22f21de51810b59
1
2
#if (-2) != -2
3
#error fail
4
#endif
5
6
#if (0 || 0) != 0
7
#error fail
8
#endif
9
10
#if (1 || 0) != 1
11
#error fail
12
#endif
13
14
#if (1 || 1) != 1
15
#error fail
16
#endif
17
18
#if (0 && 0) != 0
19
#error fail
20
#endif
21
22
#if (1 && 0) != 0
23
#error fail
24
#endif
25
26
#if (0 && 1) != 0
27
#error fail
28
#endif
29
30
#if (1 && 1) != 1
31
#error fail
32
#endif
33
34
#if (0xf0 | 1) != 0xf1
35
#error fail
36
#endif
37
38
#if (0xf0 & 1) != 0
39
#error fail
40
#endif
41
42
#if (0xf0 & 0x1f) != 0x10
43
#error fail
44
#endif
45
46
#if (1 ^ 1) != 0
47
#error fail
48
#endif
49
50
#if (1 == 1) != 1
51
#error fail
52
#endif
53
54
#if (1 == 0) != 0
55
#error fail
56
#endif
57
58
#if (1 != 1) != 0
59
#error fail
60
#endif
61
62
#if (0 != 1) != 1
63
#error fail
64
#endif
65
66
#if (0 > 1) != 0
67
#error fail
68
#endif
69
70
#if (0 < 1) != 1
71
#error fail
72
#endif
73
74
#if (0 > -1) != 1
75
#error fail
76
#endif
77
78
#if (0 < -1) != 0
79
#error fail
80
#endif
81
82
#if (0 >= 1) != 0
83
#error fail
84
#endif
85
86
#if (0 <= 1) != 1
87
#error fail
88
#endif
89
90
#if (0 >= -1) != 1
91
#error fail
92
#endif
93
94
#if (0 <= -1) != 0
95
#error fail
96
#endif
97
98
#if (0 < 0) != 0
99
#error fail
100
#endif
101
102
#if (0 <= 0) != 1
103
#error fail
104
#endif
105
106
#if (0 > 0) != 0
107
#error fail
108
#endif
109
110
#if (0 >= 0) != 1
111
#error fail
112
#endif
113
114
#if (1 << 1) != 2
115
#error fail
116
#endif
117
118
#if (2 >> 1) != 1
119
#error fail
120
#endif
121
122
#if (2 + 1) != 3
123
#error fail
124
#endif
125
126
#if (2 - 3) != -1
127
#error fail
128
#endif
129
130
#if (2 * 3) != 6
131
#error fail
132
#endif
133
134
#if (6 / 3) != 2
135
#error fail
136
#endif
137
138
#if (7 % 3) != 1
139
#error fail
140
#endif
141
142
#if (2+2*3+2) != 10
143
#error fail
144
#endif
145
146
#if ((2+2)*(3+2)) != 20
147
#error fail
148
#endif
149
150
#if (2 + 2 + 2 + 2 == 2 + 2 * 3) != 1
151
#error fail
152
#endif
153
154
#if (1,2,3) != 3
155
#error fail
156
#endif
157
158
#if (0 ? 1 : 3) != 3
159
#error fail
160
#endif
161
162
#if (1 ? 3 : 1) != 3
163
#error fail
164
#endif
165
166
int
167
main
()
168
{
169
return
0
;
170
}
171