Lines Matching refs:array

15   if (!b) {} // expected-warning {{address of array 'b' will always evaluate to 'true'}}
16 if (b == 0) {} // expected-warning {{comparison of array 'b' equal to a null pointer is always false}}
17 if (!c.x) {} // expected-warning {{address of array 'c.x' will always evaluate to 'true'}}
18 if (c.x == 0) {} // expected-warning {{comparison of array 'c.x' equal to a null pointer is always false}}
19 if (!str) {} // expected-warning {{address of array 'str' will always evaluate to 'true'}}
20 if (0 == str) {} // expected-warning {{comparison of array 'str' equal to a null pointer is always false}}
23 int array[2];
26 if (!array) { // expected-warning {{address of array 'array' will always evaluate to 'true'}}
27 return array[0];
28 } else if (array != 0) { // expected-warning {{comparison of array 'array' not equal to a null pointer is always true}}
29 return array[1];
31 if (array == 0) // expected-warning {{comparison of array 'array' equal to a null pointer is always false}}
55 if (array) { } // expected-warning {{address of array 'array' will always evaluate to 'true'}}
56 if (array != 0) {} // expected-warning {{comparison of array 'array' not equal to a null pointer is always true}}
57 if (!array) { } // expected-warning {{address of array 'array' will always evaluate to 'true'}}
58 if (array == 0) {} // expected-warning {{comparison of array 'array' equal to a null pointer is always false}}
60 if (array[0] &&
61 array) {} // expected-warning {{address of array 'array' will always evaluate to 'true'}}
63 if (array[0] ||
64 array) {} // expected-warning {{address of array 'array' will always evaluate to 'true'}}
66 if (array[0] &&
67 !array) {} // expected-warning {{address of array 'array' will always evaluate to 'true'}}
68 if (array[0] ||
69 !array) {} // expected-warning {{address of array 'array' will always evaluate to 'true'}}
71 if (array && // expected-warning {{address of array 'array' will always evaluate to 'true'}}
72 array[0]) {}
73 if (!array || // expected-warning {{address of array 'array' will always evaluate to 'true'}}
74 array[0]) {}
76 if (array || // expected-warning {{address of array 'array' will always evaluate to 'true'}}
77 (!array && array[0])) {} // expected-warning {{address of array 'array' will always evaluate to 'true'}}
90 x = b ? 1 : 0; // expected-warning {{address of array}}
91 x = c.x ? 1 : 0; // expected-warning {{address of array}}
92 x = str ? 1 : 0; // expected-warning {{address of array}}
93 x = array ? 1 : 0; // expected-warning {{address of array}}