Home | History | Annotate | Download | only in SemaCXX

Lines Matching full:comparison

12          (a == (unsigned long) b) +  // expected-warning {{comparison of integers of different signs}}
16 ((long) a == b) + // expected-warning {{comparison of integers of different signs}}
17 ((int) a == b) + // expected-warning {{comparison of integers of different signs}}
18 ((short) a == b) + // expected-warning {{comparison of integers of different signs}}
19 ((signed char) a == b) + // expected-warning {{comparison of integers of different signs}}
20 ((long) a == (unsigned long) b) + // expected-warning {{comparison of integers of different signs}}
21 ((int) a == (unsigned int) b) + // expected-warning {{comparison of integers of different signs}}
24 (a < (unsigned long) b) + // expected-warning {{comparison of integers of different signs}}
28 ((long) a < b) + // expected-warning {{comparison of integers of different signs}}
29 ((int) a < b) + // expected-warning {{comparison of integers of different signs}}
30 ((short) a < b) + // expected-warning {{comparison of integers of different signs}}
31 ((signed char) a < b) + // expected-warning {{comparison of integers of different signs}}
32 ((long) a < (unsigned long) b) + // expected-warning {{comparison of integers of different signs}}
33 ((int) a < (unsigned int) b) + // expected-warning {{comparison of integers of different signs}}
76 (a < (unsigned long) B) + // expected-warning {{comparison of integers of different signs}}
84 ((long) a < (unsigned long) B) + // expected-warning {{comparison of integers of different signs}}
85 ((int) a < (unsigned int) B) + // expected-warning {{comparison of integers of different signs}}
92 (C == (unsigned short) b) + // expected-warning {{comparison of constant 'C' (65536) with expression of type 'unsigned short' is always false}}
93 (C == (unsigned char) b) + // expected-warning {{comparison of constant 'C' (65536) with expression of type 'unsigned char' is always false}}
104 (C < (unsigned short) b) + // expected-warning {{comparison of constant 'C' (65536) with expression of type 'unsigned short' is always false}}
105 (C < (unsigned char) b) + // expected-warning {{comparison of constant 'C' (65536) with expression of type 'unsigned char' is always false}}
122 ((short) a == C) + // expected-warning {{comparison of constant 'C' (65536) with expression of type 'short' is always false}}
123 ((signed char) a == C) + // expected-warning {{comparison of constant 'C' (65536) with expression of type 'signed char' is always false}}
128 (a < (unsigned long) C) + // expected-warning {{comparison of integers of different signs}}
134 ((short) a < C) + // expected-warning {{comparison of constant 'C' (65536) with expression of type 'short' is always true}}
135 ((signed char) a < C) + // expected-warning {{comparison of constant 'C' (65536) with expression of type 'signed char' is always true}}
136 ((long) a < (unsigned long) C) + // expected-warning {{comparison of integers of different signs}}
137 ((int) a < (unsigned int) C) + // expected-warning {{comparison of integers of different signs}}
144 (0x80000 == (unsigned short) b) + // expected-warning {{comparison of constant 524288 with expression of type 'unsigned short' is always false}}
145 (0x80000 == (unsigned char) b) + // expected-warning {{comparison of constant 524288 with expression of type 'unsigned char' is always false}}
156 (0x80000 < (unsigned short) b) + // expected-warning {{comparison of constant 524288 with expression of type 'unsigned short' is always false}}
157 (0x80000 < (unsigned char) b) + // expected-warning {{comparison of constant 524288 with expression of type 'unsigned char' is always false}}
174 ((short) a == 0x80000) + // expected-warning {{comparison of constant 524288 with expression of type 'short' is always false}}
175 ((signed char) a == 0x80000) + // expected-warning {{comparison of constant 524288 with expression of type 'signed char' is always false}}
180 (a < (unsigned long) 0x80000) + // expected-warning {{comparison of integers of different signs}}
186 ((short) a < 0x80000) + // expected-warning {{comparison of constant 524288 with expression of type 'short' is always true}}
187 ((signed char) a < 0x80000) + // expected-warning {{comparison of constant 524288 with expression of type 'signed char' is always true}}
188 ((long) a < (unsigned long) 0x80000) + // expected-warning {{comparison of integers of different signs}}
189 ((int) a < (unsigned int) 0x80000) + // expected-warning {{comparison of integers of different signs}}
204 if (test1 == vp) { } // expected-warning{{equality comparison between function pointer and void pointer}}
205 if (test1 == e) { } // expected-error{{comparison between pointer and integer}}
207 if (test1 < e) { } // expected-error{{comparison between pointer and integer}}
227 // Test comparison of short to unsigned. If tautological compare does not
234 void (s < A); // expected-warning{{comparison of integers of different signs: 'short' and 'const unsigned int'}}
235 void (s > A); // expected-warning{{comparison of integers of different signs: 'short' and 'const unsigned int'}}
236 void (s <= A); // expected-warning{{comparison of integers of different signs: 'short' and 'const unsigned int'}}
237 void (s >= A); // expected-warning{{comparison of integers of different signs: 'short' and 'const unsigned int'}}
239 void (s == A); // expected-warning{{comparison of constant 32768 with expression of type 'short' is always false}}
240 void (s != A); // expected-warning{{comparison of constant 32768 with expression of type 'short' is always true}}
246 void (s < B); // expected-warning{{comparison of integers of different signs: 'short' and 'const unsigned int'}}
247 void (s > B); // expected-warning{{comparison of integers of different signs: 'short' and 'const unsigned int'}}
248 void (s <= B); // expected-warning{{comparison of integers of different signs: 'short' and 'const unsigned int'}}
249 void (s >= B); // expected-warning{{comparison of integers of different signs: 'short' and 'const unsigned int'}}
250 void (s == B); // expected-warning{{comparison of integers of different signs: 'short' and 'const unsigned int'}}
251 void (s != B); // expected-warning{{comparison of integers of different signs: 'short' and 'const unsigned int'}}
256 (void) (b < -1); // expected-warning{{comparison of constant -1 with expression of type 'bool' is always false}}
257 (void) (b > -1); // expected-warning{{comparison of constant -1 with expression of type 'bool' is always true}}
258 (void) (b == -1); // expected-warning{{comparison of constant -1 with expression of type 'bool' is always false}}
259 (void) (b != -1); // expected-warning{{comparison of constant -1 with expression of type 'bool' is always true}}
260 (void) (b <= -1); // expected-warning{{comparison of constant -1 with expression of type 'bool' is always false}}
261 (void) (b >= -1); // expected-warning{{comparison of constant -1 with expression of type 'bool' is always true}}
263 (void) (b < -10); // expected-warning{{comparison of constant -10 with expression of type 'bool' is always false}}
264 (void) (b > -10); // expected-warning{{comparison of constant -10 with expression of type 'bool' is always true}}
265 (void) (b == -10); // expected-warning{{comparison of constant -10 with expression of type 'bool' is always false}}
266 (void) (b != -10); // expected-warning{{comparison of constant -10 with expression of type 'bool' is always true}}
267 (void) (b <= -10); // expected-warning{{comparison of constant -10 with expression of type 'bool' is always false}}
268 (void) (b >= -10); // expected-warning{{comparison of constant -10 with expression of type 'bool' is always true}}
270 (void) (b < 2); // expected-warning{{comparison of constant 2 with expression of type 'bool' is always true}}
271 (void) (b > 2); // expected-warning{{comparison of constant 2 with expression of type 'bool' is always false}}
272 (void) (b == 2); // expected-warning{{comparison of constant 2 with expression of type 'bool' is always false}}
273 (void) (b != 2); // expected-warning{{comparison of constant 2 with expression of type 'bool' is always true}}
274 (void) (b <= 2); // expected-warning{{comparison of constant 2 with expression of type 'bool' is always true}}
275 (void) (b >= 2); // expected-warning{{comparison of constant 2 with expression of type 'bool' is always false}}
277 (void) (b < 10); // expected-warning{{comparison of constant 10 with expression of type 'bool' is always true}}
278 (void) (b > 10); // expected-warning{{comparison of constant 10 with expression of type 'bool' is always false}}
279 (void) (b == 10); // expected-warning{{comparison of constant 10 with expression of type 'bool' is always false}}
280 (void) (b != 10); // expected-warning{{comparison of constant 10 with expression of type 'bool' is always true}}
281 (void) (b <= 10); // expected-warning{{comparison of constant 10 with expression of type 'bool' is always true}}
282 (void) (b >= 10); // expected-warning{{comparison of constant 10 with expression of type 'bool' is always false}}
286 (void)(sc < 200); // expected-warning{{comparison of constant 200 with expression of type 'signed char' is always true}}
287 (void)(sc > 200); // expected-warning{{comparison of constant 200 with expression of type 'signed char' is always false}}
288 (void)(sc <= 200); // expected-warning{{comparison of constant 200 with expression of type 'signed char' is always true}}
289 (void)(sc >= 200); // expected-warning{{comparison of constant 200 with expression of type 'signed char' is always false}}
290 (void)(sc == 200); // expected-warning{{comparison of constant 200 with expression of type 'signed char' is always false}}
291 comparison of constant 200 with expression of type 'signed char' is always true}}
293 (void)(200 < sc); // expected-warning{{comparison of constant 200 with expression of type 'signed char' is always false}}
294 (void)(200 > sc); // expected-warning{{comparison of constant 200 with expression of type 'signed char' is always true}}
295 (void)(200 <= sc); // expected-warning{{comparison of constant 200 with expression of type 'signed char' is always false}}
296 (void)(200 >= sc); // expected-warning{{comparison of constant 200 with expression of type 'signed char' is always true}}
297 (void)(200 == sc); // expected-warning{{comparison of constant 200 with expression of type 'signed char' is always false}}
298 (void)(200 != sc); // expected-warning{{comparison of constant 200 with expression of type 'signed char' is always true}}