Home | History | Annotate | Download | only in Sema

Lines Matching full:unsigned

10 int ints(long a, unsigned long b) {
16 (a == (unsigned long) b) + // expected-warning {{comparison of integers of different signs}}
17 (a == (unsigned int) b) +
18 (a == (unsigned short) b) +
19 (a == (unsigned char) b) +
24 ((long) a == (unsigned long) b) + // expected-warning {{comparison of integers of different signs}}
25 ((int) a == (unsigned int) b) + // expected-warning {{comparison of integers of different signs}}
26 ((short) a == (unsigned short) b) +
27 ((signed char) a == (unsigned char) b) +
28 (a < (unsigned long) b) + // expected-warning {{comparison of integers of different signs}}
29 (a < (unsigned int) b) +
30 (a < (unsigned short) b) +
31 (a < (unsigned char) b) +
36 ((long) a < (unsigned long) b) + // expected-warning {{comparison of integers of different signs}}
37 ((int) a < (unsigned int) b) + // expected-warning {{comparison of integers of different signs}}
38 ((short) a < (unsigned short) b) +
39 ((signed char) a < (unsigned char) b) +
42 (A == (unsigned long) b) +
43 (A == (unsigned int) b) +
44 (A == (unsigned short) b) +
45 (A == (unsigned char) b) +
50 ((long) A == (unsigned long) b) +
51 ((int) A == (unsigned int) b) +
52 ((short) A == (unsigned short) b) +
53 ((signed char) A == (unsigned char) b) +
54 (A < (unsigned long) b) +
55 (A < (unsigned int) b) +
56 (A < (unsigned short) b) +
57 (A < (unsigned char) b) +
62 ((long) A < (unsigned long) b) +
63 ((int) A < (unsigned int) b) +
64 ((short) A < (unsigned short) b) +
65 ((signed char) A < (unsigned char) b) +
68 (a == (unsigned long) B) +
69 (a == (unsigned int) B) +
70 (a == (unsigned short) B) +
71 (a == (unsigned char) B) +
76 ((long) a == (unsigned long) B) +
77 ((int) a == (unsigned int) B) +
78 ((short) a == (unsigned short) B) +
79 ((signed char) a == (unsigned char) B) +
80 (a < (unsigned long) B) + // expected-warning {{comparison of integers of different signs}}
81 (a < (unsigned int) B) +
82 (a < (unsigned short) B) +
83 (a < (unsigned char) B) +
88 ((long) a < (unsigned long) B) + // expected-warning {{comparison of integers of different signs}}
89 ((int) a < (unsigned int) B) + // expected-warning {{comparison of integers of different signs}}
90 ((short) a < (unsigned short) B) +
91 ((signed char) a < (unsigned char) B) +
94 (C == (unsigned long) b) +
95 (C == (unsigned int) b) +
96 (C == (unsigned short) b) + // expected-warning {{comparison of constant 'C' (65536) with expression of type 'unsigned short' is always false}}
97 (C == (unsigned char) b) + // expected-warning {{comparison of constant 'C' (65536) with expression of type 'unsigned char' is always false}}
102 ((long) C == (unsigned long) b) +
103 ((int) C == (unsigned int) b) +
104 ((short) C == (unsigned short) b) +
105 ((signed char) C == (unsigned char) b) +
106 (C < (unsigned long) b) +
107 (C < (unsigned int) b) +
108 (C < (unsigned short) b) + // expected-warning {{comparison of constant 'C' (65536) with expression of type 'unsigned short' is always false}}
109 (C < (unsigned char) b) + // expected-warning {{comparison of constant 'C' (65536) with expression of type 'unsigned char' is always false}}
114 ((long) C < (unsigned long) b) +
115 ((int) C < (unsigned int) b) +
116 ((short) C < (unsigned short) b) +
117 ((signed char) C < (unsigned char) b) +
120 (a == (unsigned long) C) +
121 (a == (unsigned int) C) +
122 (a == (unsigned short) C) +
123 (a == (unsigned char) C) +
128 ((long) a == (unsigned long) C) +
129 ((int) a == (unsigned int) C) +
130 ((short) a == (unsigned short) C) +
131 ((signed char) a == (unsigned char) C) +
132 (a < (unsigned long) C) + // expected-warning {{comparison of integers of different signs}}
133 (a < (unsigned int) C) +
134 (a < (unsigned short) C) +
135 (a < (unsigned char) C) +
140 ((long) a < (unsigned long) C) + // expected-warning {{comparison of integers of different signs}}
141 ((int) a < (unsigned int) C) + // expected-warning {{comparison of integers of different signs}}
142 ((short) a < (unsigned short) C) +
143 ((signed char) a < (unsigned char) C) +
146 (0x80000 == (unsigned long) b) +
147 (0x80000 == (unsigned int) b) +
148 (0x80000 == (unsigned short) b) + // expected-warning {{comparison of constant 524288 with expression of type 'unsigned short' is always false}}
149 (0x80000 == (unsigned char) b) + // expected-warning {{comparison of constant 524288 with expression of type 'unsigned char' is always false}}
154 ((long) 0x80000 == (unsigned long) b) +
155 ((int) 0x80000 == (unsigned int) b) +
156 ((short) 0x80000 == (unsigned short) b) +
157 ((signed char) 0x80000 == (unsigned char) b) +
158 (0x80000 < (unsigned long) b) +
159 (0x80000 < (unsigned int) b) +
160 (0x80000 < (unsigned short) b) + // expected-warning {{comparison of constant 524288 with expression of type 'unsigned short' is always false}}
161 (0x80000 < (unsigned char) b) + // expected-warning {{comparison of constant 524288 with expression of type 'unsigned char' is always false}}
166 ((long) 0x80000 < (unsigned long) b) +
167 ((int) 0x80000 < (unsigned int) b) +
168 ((short) 0x80000 < (unsigned short) b) +
169 ((signed char) 0x80000 < (unsigned char) b) +
172 (a == (unsigned long) 0x80000) +
173 (a == (unsigned int) 0x80000) +
174 (a == (unsigned short) 0x80000) +
175 (a == (unsigned char) 0x80000) +
180 ((long) a == (unsigned long) 0x80000) +
181 ((int) a == (unsigned int) 0x80000) +
182 ((short) a == (unsigned short) 0x80000) +
183 ((signed char) a == (unsigned char) 0x80000) +
184 (a < (unsigned long) 0x80000) + // expected-warning {{comparison of integers of different signs}}
185 (a < (unsigned int) 0x80000) +
186 (a < (unsigned short) 0x80000) +
187 (a < (unsigned char) 0x80000) +
192 ((long) a < (unsigned long) 0x80000) + // expected-warning {{comparison of integers of different signs}}
193 ((int) a < (unsigned int) 0x80000) + // expected-warning {{comparison of integers of different signs}}
194 ((short) a < (unsigned short) 0x80000) +
195 ((signed char) a < (unsigned char) 0x80000) +
241 unsigned int u8 : 8;
242 unsigned long long u31 : 31;
243 unsigned long long u32 : 32;
244 unsigned long long u63 : 63;
245 unsigned long long u64 : 64;
265 unsigned short x, y;
266 unsigned int z;
275 if (value < (unsigned long) &ptr4) // expected-warning {{comparison of integers of different signs}}
280 int test5(unsigned int x) {
281 return (x < 0) // expected-warning {{comparison of unsigned expression < 0 is always false}}
282 && (0 > x) // expected-warning {{comparison of 0 > unsigned expression is always false}}
283 && (x >= 0) // expected-warning {{comparison of unsigned expression >= 0 is always true}}
284 && (0 <= x); // expected-warning {{comparison of 0 <= unsigned expression is always true}}
287 int test6(unsigned i, unsigned power) {
288 unsigned x = (i < (1 << power) ? i : 0);
302 int rdar8414119_bar(unsigned x) {
311 if (a < 0) // expected-warning {{comparison of unsigned enum expression < 0 is always false}}
317 int test9(int sv, unsigned uv, long slv) {
318 return sv == (uv ^= slv); // expected-warning {{comparison of integers of different signs: 'int' and 'unsigned int'}}
323 unsigned int ui;
327 b = (si == (ui = sl)); // expected-warning {{comparison of integers of different signs: 'int' and 'unsigned int'}}
332 struct test11S { unsigned x : 30; };
333 int test11(unsigned y, struct test11S *p) {
340 void test12(unsigned a) {